Package org.zeroturnaround.javarebel
Interface ClassEventListener
-
public interface ClassEventListenerA callback that will be notified when a class event occurs.- Since:
- 1.2
- Author:
- Jevgeni Kabanov (ekabanov@zeroturnaround.com)
-
-
Field Summary
Fields Modifier and Type Field Description static intEVENT_DEPENDENCY_RELOADEDEvent that occurs right after a dependency has been reloaded.static intEVENT_LOADEDEvent that occurs right after a class has been loaded.static intEVENT_RELOADEDEvent that occurs right after a class has been reloaded.static intPRIORITY_COREstatic intPRIORITY_DEFAULTstatic intPRIORITY_WEB
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidonClassEvent(int eventType, Class<?> klass)Called when a class event occurs.default intpriority()Returns the priority of the listener that defines the order of listener invocation.
-
-
-
Field Detail
-
PRIORITY_DEFAULT
static final int PRIORITY_DEFAULT
- See Also:
- Constant Field Values
-
PRIORITY_WEB
static final int PRIORITY_WEB
- See Also:
- Constant Field Values
-
PRIORITY_CORE
static final int PRIORITY_CORE
- See Also:
- Constant Field Values
-
EVENT_LOADED
static final int EVENT_LOADED
Event that occurs right after a class has been loaded.- See Also:
- Constant Field Values
-
EVENT_RELOADED
static final int EVENT_RELOADED
Event that occurs right after a class has been reloaded.- See Also:
- Constant Field Values
-
EVENT_DEPENDENCY_RELOADED
static final int EVENT_DEPENDENCY_RELOADED
Event that occurs right after a dependency has been reloaded.- See Also:
- Constant Field Values
-
-
Method Detail
-
onClassEvent
void onClassEvent(int eventType, Class<?> klass) throws ExceptionCalled when a class event occurs.- Throws:
Exception- See Also:
EVENT_LOADED,EVENT_RELOADED
-
priority
default int priority()
Returns the priority of the listener that defines the order of listener invocation. First run the listener with greatest priority value. Negative values are the latest.
-
-