Package net.sf.cglib.proxy
Class CallbackHelper
- java.lang.Object
-
- net.sf.cglib.proxy.CallbackHelper
-
- All Implemented Interfaces:
CallbackFilter
public abstract class CallbackHelper extends Object implements CallbackFilter
- Version:
- $Id: CallbackHelper.java,v 1.2 2004/06/24 21:15:20 herbyderby Exp $
-
-
Constructor Summary
Constructors Constructor Description CallbackHelper(Class superclass, Class[] interfaces)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
accept(Method method)
Map a method to a callback.boolean
equals(Object o)
TheCallbackFilter
in use affects which cached class theEnhancer
will use, so this is a reminder that you should correctly implementequals
andhashCode
for customCallbackFilter
implementations in order to improve performance.protected abstract Object
getCallback(Method method)
Callback[]
getCallbacks()
Class[]
getCallbackTypes()
int
hashCode()
-
-
-
Method Detail
-
getCallbacks
public Callback[] getCallbacks()
-
getCallbackTypes
public Class[] getCallbackTypes()
-
accept
public int accept(Method method)
Description copied from interface:CallbackFilter
Map a method to a callback.- Specified by:
accept
in 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,
-
equals
public boolean equals(Object o)
Description copied from interface:CallbackFilter
TheCallbackFilter
in use affects which cached class theEnhancer
will use, so this is a reminder that you should correctly implementequals
andhashCode
for customCallbackFilter
implementations in order to improve performance.- Specified by:
equals
in interfaceCallbackFilter
- Overrides:
equals
in classObject
-
-