Class OnClassLoadedHandler
- java.lang.Object
-
- org.hotswap.agent.annotation.handler.OnClassLoadedHandler
-
- All Implemented Interfaces:
PluginHandler<OnClassLoadEvent>
public class OnClassLoadedHandler extends Object implements PluginHandler<OnClassLoadEvent>
Transform method handler - handle @OnClassLoadEvent annotation on a method.- Author:
- Jiri Bubnik
-
-
Field Summary
Fields Modifier and Type Field Description protected HotswapTransformerhotswapTransformerprotected static AgentLoggerLOGGERprotected PluginManagerpluginManager
-
Constructor Summary
Constructors Constructor Description OnClassLoadedHandler(PluginManager pluginManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninitField(PluginAnnotation<OnClassLoadEvent> pluginAnnotation)Initialization for field annotations.booleaninitMethod(PluginAnnotation<OnClassLoadEvent> pluginAnnotation)Initialization for method annotations.
-
-
-
Field Detail
-
LOGGER
protected static AgentLogger LOGGER
-
pluginManager
protected PluginManager pluginManager
-
hotswapTransformer
protected HotswapTransformer hotswapTransformer
-
-
Constructor Detail
-
OnClassLoadedHandler
public OnClassLoadedHandler(PluginManager pluginManager)
-
-
Method Detail
-
initField
public boolean initField(PluginAnnotation<OnClassLoadEvent> pluginAnnotation)
Description copied from interface:PluginHandlerInitialization for field annotations.- Specified by:
initFieldin interfacePluginHandler<OnClassLoadEvent>- Parameters:
pluginAnnotation- annotation values- Returns:
- true if initialized.
-
initMethod
public boolean initMethod(PluginAnnotation<OnClassLoadEvent> pluginAnnotation)
Description copied from interface:PluginHandlerInitialization for method annotations.- Specified by:
initMethodin interfacePluginHandler<OnClassLoadEvent>- Parameters:
pluginAnnotation- annotation values- Returns:
- true if initialized.
-
-