|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a method to map from callback types (as defined per-method by a CallbackFilter
)
to a particular Callback
implementation. The callback type constants are defined here as well.
In practice it should be rare to need to implement this interface. See SimpleCallbacks
for
a simple implementation.
Field Summary | |
static int |
DISPATCH
Callback type used to load an implementation for every single method invocation. |
static int |
INTERCEPT
Generic interceptor callback type. |
static int |
JDK_PROXY
Special callback type used by the Proxy class for
java.lang.reflect.Proxy compatibility. |
static int |
LAZY_LOAD
Callback type used to load an implementation as soon as the first method is called, Callback implementation is LazyLoader . |
static int |
MAX_VALUE
|
static int |
NO_OP
No-op callback type. |
Method Summary | |
Callback |
get(int type)
Return the actual Callback implementation for the specified callback type. |
Field Detail |
public static final int NO_OP
Callback
implementation.
public static final int INTERCEPT
Callback
implementation is MethodInterceptor
.
MethodInterceptor
,
Constant Field Valuespublic static final int JDK_PROXY
Proxy
class for
java.lang.reflect.Proxy
compatibility. You probably don't
want to use this directly. Callback
implementation is InvocationHandler
.
Proxy
,
InvocationHandler
,
Constant Field Valuespublic static final int LAZY_LOAD
Callback
implementation is LazyLoader
.
LazyLoader
,
Constant Field Valuespublic static final int DISPATCH
Callback
implementation is Dispatcher
.
Dispatcher
,
Constant Field Valuespublic static final int MAX_VALUE
Method Detail |
public Callback get(int type)
Callback
implementation for the specified callback type.
type
- the callback type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |