Uses of Interface
net.sf.cglib.proxy.Callback
-
Packages that use Callback Package Description net.sf.cglib.proxy net.sf.cglib.samples -
-
Uses of Callback in net.sf.cglib.proxy
Subinterfaces of Callback in net.sf.cglib.proxy Modifier and Type Interface Description interface
Dispatcher
DispatchingEnhancer
callback.interface
FixedValue
Enhancer
callback that simply returns the value to return from the proxied method.interface
InvocationHandler
InvocationHandler
replacement (unavailable under JDK 1.2).interface
LazyLoader
Lazy-loadingEnhancer
callback.interface
MethodInterceptor
General-purposeEnhancer
callback which provides for "around advice".interface
NoOp
Methods using thisEnhancer
callback will delegate directly to the default (super) implementation in the base class.interface
ProxyRefDispatcher
DispatchingEnhancer
callback.Methods in net.sf.cglib.proxy that return Callback Modifier and Type Method Description Callback
Factory. getCallback(int index)
Return theCallback
implementation at the specified index.Callback[]
CallbackHelper. getCallbacks()
Callback[]
Factory. getCallbacks()
Get the current set of callbacks for ths object.Methods in net.sf.cglib.proxy with parameters of type Callback Modifier and Type Method Description static Object
Enhancer. create(Class superclass, Class[] interfaces, Callback callback)
Helper method to create an intercepted object.static Object
Enhancer. create(Class superclass, Class[] interfaces, CallbackFilter filter, Callback[] callbacks)
Helper method to create an intercepted object.static Object
Enhancer. create(Class type, Callback callback)
Helper method to create an intercepted object.Object
Factory. newInstance(Class[] types, Object[] args, Callback[] callbacks)
Creates a new instance of the same type, using the constructor matching the given signature.Object
Factory. newInstance(Callback callback)
Creates new instance of the same type, using the no-arg constructor.Object
Factory. newInstance(Callback[] callbacks)
Creates new instance of the same type, using the no-arg constructor.static void
Enhancer. registerCallbacks(Class generatedClass, Callback[] callbacks)
Call this method to register theCallback
array to use before creating a new instance of the generated class via reflection.static void
Enhancer. registerStaticCallbacks(Class generatedClass, Callback[] callbacks)
Similar toEnhancer.registerCallbacks(java.lang.Class, net.sf.cglib.proxy.Callback[])
, but suitable for use when multiple threads will be creating instances of the generated class.void
Enhancer. setCallback(Callback callback)
Set the singleCallback
to use.void
Factory. setCallback(int index, Callback callback)
Set the callback for this object for the given type.void
Enhancer. setCallbacks(Callback[] callbacks)
Set the array of callbacks to use.void
Factory. setCallbacks(Callback[] callbacks)
Replace all of the callbacks for this object at once. -
Uses of Callback in net.sf.cglib.samples
Classes in net.sf.cglib.samples that implement Callback Modifier and Type Class Description class
Beans
class
Trace
-