Class ExtensionService

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyListener

public class ExtensionService extends AbstractService
Service that loads extensions at startup. An extension is an optional part of kos that can be included and loaded as part of the core before any applications are loaded. All extensions will be loaded into a shared classloader which will then be the parent classloader of the system app. Extensions have access to the root kos bean context and can add beans as needed. Any controllers defined in an extension will be in the /kos/{extension} namespace.
Version:
2022-02-16
  • Field Details

  • Constructor Details

    • ExtensionService

      public ExtensionService()
  • Method Details

    • hasExtension

      public boolean hasExtension(String name)
      Return true if the named extension has been installed.
      Parameters:
      name - the name of the extension to check
    • getExtensionNames

      public Collection<String> getExtensionNames()
      Return a list of extensions that are installed.