Package com.tccc.kos.core.service.ext
Class ExtensionService
java.lang.Object
com.tccc.kos.commons.util.ready.ReadyBean
com.tccc.kos.commons.core.service.AbstractService
com.tccc.kos.core.service.ext.ExtensionService
- All Implemented Interfaces:
CtxEventListener
,ContextHandleAware
,HandleAware
,Ready
,ReadyListener
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a list of extensions that are installed.boolean
hasExtension
(String name) Return true if the named extension has been installed.Methods inherited from class com.tccc.kos.commons.core.service.AbstractService
getHandle, getHandlePrefix
Methods inherited from class com.tccc.kos.commons.util.ready.ReadyBean
getReady, onBeanReady, onDependenciesReady
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompleted
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
Methods inherited from interface com.tccc.kos.commons.util.ready.ReadyListener
onDependenciesGroupReady
-
Field Details
-
EXTENSION_CONTEXT
- See Also:
-
EXTENSION_PROPERTY
- See Also:
-
-
Constructor Details
-
ExtensionService
public ExtensionService()
-
-
Method Details
-
hasExtension
Return true if the named extension has been installed.- Parameters:
name
- the name of the extension to check
-
getExtensionNames
Return a list of extensions that are installed.
-