|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the kernel extension marker to be implemented by plugins.public interface KernelExtension<T>
Kernel extensions provide an SPI to enhanced the kernel behavior.
To create a kernel extension, create a class which implements the KernelExtension interface. And a marker
interface associated to the extension as follows:
class MyFeatureExtension implements KernelExtension<MyFeature> {...}
interface MyFeature {...}
Then, create a plugin implementing the extension marker.
class MyPlugin extends AbstractPlugin implements MyFeature {...}
The kernel extension will be called at each step of the kernel lifecycle (initializing, initialized, starting, etc.). The list of plugin implementing the kernel extension marker will be passed to the kernel extension at each method call.
| Method Summary | |
|---|---|
void |
initialized(Collection<T> extendedPlugins)
Notifies the given extension that the kernel is initialized. |
void |
initializing(Collection<T> extendedPlugins)
Notifies the given extension that the kernel is initializing. |
void |
started(Collection<T> extendedPlugins)
Notifies the given extension that the kernel is started. |
void |
starting(Collection<T> extendedPlugins)
Notifies the given extension that the kernel is starting. |
void |
stopped(Collection<T> extendedPlugins)
Notifies the given extension that the kernel is stopped. |
void |
stopping(Collection<T> extendedPlugins)
Notifies the given extension that the kernel is stopping. |
| Method Detail |
|---|
void initializing(Collection<T> extendedPlugins)
extendedPlugins - the plugin to notifyvoid initialized(Collection<T> extendedPlugins)
extendedPlugins - the plugin to notifyvoid starting(Collection<T> extendedPlugins)
extendedPlugins - the plugin to notifyvoid started(Collection<T> extendedPlugins)
extendedPlugins - the plugin to notifyvoid stopping(Collection<T> extendedPlugins)
extendedPlugins - the plugin to notifyvoid stopped(Collection<T> extendedPlugins)
extendedPlugins - the plugin to notify
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||