net.sf.cglib
Class SimpleFilter
java.lang.Object
net.sf.cglib.SimpleFilter
- All Implemented Interfaces:
- CallbackFilter
- public class SimpleFilter
- extends java.lang.Object
- implements CallbackFilter
A CallbackFilter
that returns the same type for every method.
Used internally by Enhancer
but not typically needed otherwise
since the same thing can be accomplished by using the Enhancer.setCallback(net.sf.cglib.Callback)
method.
Method Summary |
int |
accept(java.lang.reflect.Method method)
Map a method to a callback type. |
boolean |
equals(java.lang.Object obj)
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. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SimpleFilter
public SimpleFilter(int type)
accept
public int accept(java.lang.reflect.Method method)
- Description copied from interface:
CallbackFilter
- Map a method to a callback type.
- Specified by:
accept
in interface CallbackFilter
- Parameters:
method
- the intercepted method
- Returns:
- a callback type, as enumerated in the
Callbacks
interface - See Also:
Callbacks
hashCode
public int hashCode()
equals
public boolean equals(java.lang.Object obj)
- 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
toString
public java.lang.String toString()
Copyright © 2002-2003 cglib. All Rights Reserved.