Package net.sf.cglib.proxy
Class CallbackHelper
- java.lang.Object
-
- net.sf.cglib.proxy.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 $
-
-
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 intaccept(java.lang.reflect.Method method)Map a method to a callback.booleanequals(java.lang.Object o)TheCallbackFilterin use affects which cached class theEnhancerwill use, so this is a reminder that you should correctly implementequalsandhashCodefor customCallbackFilterimplementations in order to improve performance.protected abstract java.lang.ObjectgetCallback(java.lang.reflect.Method method)Callback[]getCallbacks()java.lang.Class[]getCallbackTypes()inthashCode()
-
-
-
Method Detail
-
getCallback
protected abstract java.lang.Object getCallback(java.lang.reflect.Method method)
-
getCallbacks
public Callback[] getCallbacks()
-
getCallbackTypes
public java.lang.Class[] getCallbackTypes()
-
accept
public int accept(java.lang.reflect.Method method)
Description copied from interface:CallbackFilterMap a method to a callback.- Specified by:
acceptin interfaceCallbackFilter- Parameters:
method- the intercepted method- Returns:
- the index into the array of callbacks (as specified by
Enhancer.setCallbacks(net.sf.cglib.proxy.Callback[])) to use for the method,
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:CallbackFilterTheCallbackFilterin use affects which cached class theEnhancerwill use, so this is a reminder that you should correctly implementequalsandhashCodefor customCallbackFilterimplementations in order to improve performance.- Specified by:
equalsin interfaceCallbackFilter- Overrides:
equalsin classjava.lang.Object
-
-