Class 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:
    ReloaderUtil
    • Constructor Detail

      • DependencyClassEventListener

        public DependencyClassEventListener​(Class<?> klass,
                                            Collection<Class<?>> dependencies,
                                            org.zeroturnaround.javarebel.ClassEventListener target)
    • Method Detail

      • onClassEvent

        public void onClassEvent​(int eventType,
                                 Class<?> klass)
                          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()