# Uses of Interface
org.springframework.cglib.proxy.Callback

Packages that use Callback
Package
Description
org.springframework.cglib.proxy
Spring's repackaging of the CGLIB proxy package (for internal use only).

## Uses of Callback in org.springframework.cglib.proxy

Subinterfaces of Callback in org.springframework.cglib.proxy
Modifier and Type
Interface
Description
`interface`
`Dispatcher`
Dispatching `Enhancer` 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-loading `Enhancer` callback.
`interface`
`MethodInterceptor`
General-purpose `Enhancer` callback which provides for "around advice".
`interface`
`NoOp`
Methods using this `Enhancer` callback will delegate directly to the default (super) implementation in the base class.
`interface`
`ProxyRefDispatcher`
Dispatching `Enhancer` callback.
Methods in org.springframework.cglib.proxy that return Callback
Modifier and Type
Method
Description
`Callback`
Factory.`getCallback(int index)`
Return the `Callback` implementation at the specified index.
`Callback[]`
CallbackHelper.`getCallbacks()`
`Callback[]`
Factory.`getCallbacks()`
Get the current set of callbacks for ths object.
Methods in org.springframework.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 the `Callback` array to use before creating a new instance of the generated class via reflection.
`static void`
Enhancer.`registerStaticCallbacks(Class generatedClass, Callback[] callbacks)`
Similar to `Enhancer.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 single `Callback` 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.