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
|
Set<URL> |
computeAdditionalClasspathScan()
The kernel allow the plugin to compute additionnal classpath to scan.
|
DependencyInjectionProvider |
dependencyInjectionProvider()
return a dependency injection provider to the kernel.
|
Collection<Class<? extends Plugin>> |
dependentPlugins()
list of plugins that become dependent on "this" plugin.
|
String |
description()
The description of the plugin.
|
void |
destroy()
Lifecycle method : destroy()
|
InitState |
init(InitContext initContext)
Lifecycle method : init()
|
Map<String,String> |
kernelParametersAliases()
Re
return 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 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 |
provideRoundEnvironment(RoundEnvironment roundEnvironment)
Round Environment provide information regarding the current round to the plugin.
|
Collection<Class<? extends Plugin>> |
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()
void destroy()
String name()
String description()
Collection<KernelParamsRequest> kernelParamsRequests()
Collection<ClasspathScanRequest> classpathScanRequests()
Collection<BindingRequest> bindingRequests()
Collection<Class<? extends Plugin>> requiredPlugins()
Collection<Class<? extends Plugin>> dependentPlugins()
String pluginPropertiesPrefix()
String pluginPackageRoot()
UnitModule unitModule()
Module but
it can be other dependency injection object from other ioc frameworks : Spring, Tapestry, Jodd, etc.
The kernel must have a 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.
void provideRoundEnvironment(RoundEnvironment roundEnvironment)
roundEnvironment - Copyright © 2012-2014. All Rights Reserved.