public class InitHandler extends Object implements PluginHandler<Init>
Init| Modifier and Type | Field and Description |
|---|---|
protected PluginManager |
pluginManager |
| Constructor and Description |
|---|
InitHandler(PluginManager pluginManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
initField(PluginAnnotation pluginAnnotation)
Initialization for field annotations.
|
boolean |
initMethod(PluginAnnotation pluginAnnotation)
Initialization for method annotations.
|
protected boolean |
registerClassLoaderInit(PluginAnnotation pluginAnnotation)
Register on classloader init event - call the @Init static method.
|
protected Object |
resolveType(ClassLoader classLoader,
Class pluginClass,
Class type)
Support for autowiring of agent services - resolve instance by class.
|
protected PluginManager pluginManager
public InitHandler(PluginManager pluginManager)
public boolean initField(PluginAnnotation pluginAnnotation)
PluginHandlerinitField in interface PluginHandler<Init>pluginAnnotation - annotation valuespublic boolean initMethod(PluginAnnotation pluginAnnotation)
PluginHandlerinitMethod in interface PluginHandler<Init>pluginAnnotation - annotation valuesprotected boolean registerClassLoaderInit(PluginAnnotation pluginAnnotation)
pluginAnnotation - description of plugin method to callprotected Object resolveType(ClassLoader classLoader, Class pluginClass, Class type)
classLoader - application classloaderpluginClass - used only for debugging messagestype - requested typeCopyright © 2018. All rights reserved.