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

    Constructors
    Constructor
    Description
    DependencyClassEventListener(Class<?> klass, Collection<Class<?>> dependencies, org.zeroturnaround.javarebel.ClassEventListener target)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    onClassEvent(int eventType, Class<?> klass, Collection<org.zeroturnaround.javarebel.ClassEventListener.ChangeType> changeTypes)
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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:
      onClassEvent in interface org.zeroturnaround.javarebel.ClassEventListener
      Throws:
      Exception
    • priority

      public int priority()
      Specified by:
      priority in interface org.zeroturnaround.javarebel.ClassEventListener
    • getTarget

      public Object getTarget()
    • toString

      public String toString()
      Overrides:
      toString in class Object