Package io.nuun.kernel.core.internal
Class ExtensionManager
- java.lang.Object
-
- io.nuun.kernel.core.internal.ExtensionManager
-
public class ExtensionManager extends Object
The ExtensionManager handles the kernel extensions.- Author:
- Pierre Thirouin <pierre.thirouin@ext.mpsa.com>
-
-
Constructor Summary
Constructors Constructor Description ExtensionManager(Collection<Plugin> fetchedPlugins, ClassLoader contextClassLoader)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<KernelExtension<?>>getExtensions()Gets enabled extensions.voidinitialized()Notifies the extensions that the kernel is initializedvoidinitializing()Notifies the extensions that the kernel is initializingvoidinjected()Notifies the extensions that the plugins are injectedvoidstarted()Notifies the extensions that the kernel is startedvoidstarting()Notifies the extensions that the kernel is startingvoidstopped()Notifies the extensions that the kernel is stoppedvoidstopping()Notifies the extensions that the kernel is stopping
-
-
-
Constructor Detail
-
ExtensionManager
public ExtensionManager(Collection<Plugin> fetchedPlugins, ClassLoader contextClassLoader)
Constructor.- Parameters:
fetchedPlugins- the plugin listcontextClassLoader- the context classloader
-
-
Method Detail
-
initializing
public void initializing()
Notifies the extensions that the kernel is initializing
-
initialized
public void initialized()
Notifies the extensions that the kernel is initialized
-
starting
public void starting()
Notifies the extensions that the kernel is starting
-
injected
public void injected()
Notifies the extensions that the plugins are injected
-
started
public void started()
Notifies the extensions that the kernel is started
-
stopping
public void stopping()
Notifies the extensions that the kernel is stopping
-
stopped
public void stopped()
Notifies the extensions that the kernel is stopped
-
getExtensions
public Set<KernelExtension<?>> getExtensions()
Gets enabled extensions.- Returns:
- set of kernel extensions
-
-