Uses of Interface
net.sf.cglib.proxy.Callback
-
Packages that use Callback Package Description net.sf.cglib.proxy -
-
Uses of Callback in net.sf.cglib.proxy
Subinterfaces of Callback in net.sf.cglib.proxy Modifier and Type Interface Description interfaceDispatcherDispatchingEnhancercallback.interfaceFixedValueEnhancercallback that simply returns the value to return from the proxied method.interfaceInvocationHandlerInvocationHandlerreplacement (unavailable under JDK 1.2).interfaceLazyLoaderLazy-loadingEnhancercallback.interfaceMethodInterceptorGeneral-purposeEnhancercallback which provides for "around advice".interfaceNoOpMethods using thisEnhancercallback will delegate directly to the default (super) implementation in the base class.interfaceProxyRefDispatcherDispatchingEnhancercallback.Methods in net.sf.cglib.proxy that return Callback Modifier and Type Method Description CallbackFactory. getCallback(int index)Return theCallbackimplementation 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 ObjectEnhancer. create(Class superclass, Class[] interfaces, Callback callback)Helper method to create an intercepted object.static ObjectEnhancer. create(Class superclass, Class[] interfaces, CallbackFilter filter, Callback[] callbacks)Helper method to create an intercepted object.static ObjectEnhancer. create(Class type, Callback callback)Helper method to create an intercepted object.ObjectFactory. newInstance(Class[] types, Object[] args, Callback[] callbacks)Creates a new instance of the same type, using the constructor matching the given signature.ObjectFactory. newInstance(Callback callback)Creates new instance of the same type, using the no-arg constructor.ObjectFactory. newInstance(Callback[] callbacks)Creates new instance of the same type, using the no-arg constructor.static voidEnhancer. registerCallbacks(Class generatedClass, Callback[] callbacks)Call this method to register theCallbackarray to use before creating a new instance of the generated class via reflection.static voidEnhancer. 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.voidEnhancer. setCallback(Callback callback)Set the singleCallbackto use.voidFactory. setCallback(int index, Callback callback)Set the callback for this object for the given type.voidEnhancer. setCallbacks(Callback[] callbacks)Set the array of callbacks to use.voidFactory. setCallbacks(Callback[] callbacks)Replace all of the callbacks for this object at once.
-