Class DependencyClassEventListener
java.lang.Object
org.zeroturnaround.javarebel.integration.generic.DependencyClassEventListener
- All Implemented Interfaces:
org.zeroturnaround.javarebel.ClassEventListener
public class DependencyClassEventListener
extends Object
implements org.zeroturnaround.javarebel.ClassEventListener
ClassEventListener wrapper to avoid multiple invocations for a same event.
Instead of a dependency the original class is used as the event parameter.
- Author:
- Rein Raudjärv
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.zeroturnaround.javarebel.ClassEventListener
org.zeroturnaround.javarebel.ClassEventListener.ChangeType -
Field Summary
Fields inherited from interface org.zeroturnaround.javarebel.ClassEventListener
EVENT_DEPENDENCY_RELOADED, EVENT_LOADED, EVENT_RELOADED, PRIORITY_CORE, PRIORITY_DEFAULT, PRIORITY_WEB -
Constructor Summary
ConstructorsConstructorDescriptionDependencyClassEventListener(Class<?> klass, Collection<Class<?>> dependencies, org.zeroturnaround.javarebel.ClassEventListener target) -
Method Summary
Modifier and TypeMethodDescriptionvoidonClassEvent(int eventType, Class<?> klass, Collection<org.zeroturnaround.javarebel.ClassEventListener.ChangeType> changeTypes) intpriority()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zeroturnaround.javarebel.ClassEventListener
onClassEvent
-
Constructor Details
-
DependencyClassEventListener
public DependencyClassEventListener(Class<?> klass, Collection<Class<?>> dependencies, org.zeroturnaround.javarebel.ClassEventListener target)
-
-
Method Details
-
onClassEvent
public void onClassEvent(int eventType, Class<?> klass, Collection<org.zeroturnaround.javarebel.ClassEventListener.ChangeType> changeTypes) throws Exception - Specified by:
onClassEventin interfaceorg.zeroturnaround.javarebel.ClassEventListener- Throws:
Exception
-
priority
public int priority()- Specified by:
priorityin interfaceorg.zeroturnaround.javarebel.ClassEventListener
-
getTarget
-
toString
-