public interface Plugin
| Modifier and Type | Method and Description |
|---|---|
Collection<BindingRequest> |
bindingRequests()
List of bind request.
|
Collection<ClasspathScanRequest> |
classpathScanRequests()
List of classpath request needed by this plugin.
|
Set<URL> |
computeAdditionalClasspathScan()
The kernel allows the plugin to compute additional classpath to scan.
|
DependencyInjectionProvider |
dependencyInjectionProvider()
Returns Dependency injection provider to the kernel.
|
Collection<Class<?>> |
dependentPlugins()
List of plugins that become dependent on "this" plugin.
|
String |
description()
The description of the plugin.
|
InitState |
init(InitContext initContext)
Lifecycle method: init()
|
Map<String,String> |
kernelParametersAliases()
Returns a map which contains:
- key :the alias to create
|
Collection<KernelParamsRequest> |
kernelParamsRequests()
list of kernel params needed by this plugins, required by this plugin.
|
String |
name()
The name of the plugin.
|
UnitModule |
overridingUnitModule()
This object will contains bindings definition that will override the main dependency ones.
|
String |
pluginPackageRoot()
The package root(s) from where the nuun core will scan for annotation.
|
String |
pluginPropertiesPrefix()
The prefix for all the properties for this plugin.
|
void |
provideContainerContext(Object containerContext)
Practical method to retrieve the container context as it is passed as argument.
|
void |
provideRound(Round round)
The
Round provides information regarding the current round to the plugin. |
Collection<Class<?>> |
requiredPlugins()
List of plugins dependencies required by this plugin.
|
void |
start(Context context)
Lifecycle method: start()
|
void |
stop()
Lifecycle method: stop()
|
UnitModule |
unitModule()
Return an object that will contains the dependency injection definitions.
|
InitState init(InitContext initContext)
void start(Context context)
void stop()
String name()
String description()
Collection<KernelParamsRequest> kernelParamsRequests()
Collection<ClasspathScanRequest> classpathScanRequests()
Collection<BindingRequest> bindingRequests()
Collection<Class<?>> requiredPlugins()
Collection<Class<?>> dependentPlugins()
String pluginPropertiesPrefix()
String pluginPackageRoot()
UnitModule unitModule()
DependencyInjectionProvider that handle it.UnitModule overridingUnitModule()
DependencyInjectionProvider if keys match.void provideContainerContext(Object containerContext)
containerContext - the context of the containerSet<URL> computeAdditionalClasspathScan()
DependencyInjectionProvider dependencyInjectionProvider()
Map<String,String> kernelParametersAliases()
- key :the alias to create. - value : kernel parameter to alias.
Copyright © 2012-2015. All Rights Reserved.