Class CallbackHelper

  • All Implemented Interfaces:
    CallbackFilter

    public abstract class CallbackHelper
    extends java.lang.Object
    implements CallbackFilter
    Version:
    $Id: CallbackHelper.java,v 1.2 2004/06/24 21:15:20 herbyderby Exp $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List callbacks  
      private java.util.Map methodMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      CallbackHelper​(java.lang.Class superclass, java.lang.Class[] interfaces)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int accept​(java.lang.reflect.Method method)
      Map a method to a callback.
      boolean equals​(java.lang.Object o)
      The CallbackFilter in use affects which cached class the Enhancer will use, so this is a reminder that you should correctly implement equals and hashCode for custom CallbackFilter implementations in order to improve performance.
      protected abstract java.lang.Object getCallback​(java.lang.reflect.Method method)  
      Callback[] getCallbacks()  
      java.lang.Class[] getCallbackTypes()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • methodMap

        private java.util.Map methodMap
      • callbacks

        private java.util.List callbacks
    • Constructor Detail

      • CallbackHelper

        public CallbackHelper​(java.lang.Class superclass,
                              java.lang.Class[] interfaces)
    • Method Detail

      • getCallback

        protected abstract java.lang.Object getCallback​(java.lang.reflect.Method method)
      • getCallbacks

        public Callback[] getCallbacks()
      • getCallbackTypes

        public java.lang.Class[] getCallbackTypes()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from interface: CallbackFilter
        The CallbackFilter in use affects which cached class the Enhancer will use, so this is a reminder that you should correctly implement equals and hashCode for custom CallbackFilter implementations in order to improve performance.
        Specified by:
        equals in interface CallbackFilter
        Overrides:
        equals in class java.lang.Object