Uses of Interface
org.springframework.cglib.proxy.Callback
-
Uses of Callback in org.springframework.cglib.proxy
Modifier and TypeInterfaceDescriptioninterface
DispatchingEnhancer
callback.interface
Enhancer
callback that simply returns the value to return from the proxied method.interface
InvocationHandler
replacement (unavailable under JDK 1.2).interface
Lazy-loadingEnhancer
callback.interface
General-purposeEnhancer
callback which provides for "around advice".interface
Methods using thisEnhancer
callback will delegate directly to the default (super) implementation in the base class.interface
DispatchingEnhancer
callback.Modifier and TypeMethodDescriptionFactory.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.Modifier and TypeMethodDescriptionstatic Object
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
Helper method to create an intercepted object.Factory.newInstance
(Class[] types, Object[] args, Callback[] callbacks) Creates a new instance of the same type, using the constructor matching the given signature.Factory.newInstance
(Callback callback) Creates new instance of the same type, using the no-arg constructor.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, org.springframework.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.