public class JavassistProxyFactory extends AbstractSubclassingProxyFactory
| Constructor and Description |
|---|
JavassistProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createDelegatorProxy(ClassLoader classLoader,
ObjectProvider targetProvider,
Class[] proxyClasses)
Creates a proxy which delegates to the object provided by
delegateProvider. |
Object |
createInterceptorProxy(ClassLoader classLoader,
Object target,
Interceptor interceptor,
Class[] proxyClasses)
Creates a proxy which passes through a
interceptor before eventually reaching the
target object. |
Object |
createInvokerProxy(ClassLoader classLoader,
Invoker invoker,
Class[] proxyClasses)
Creates a proxy which uses the provided
Invoker to handle all method invocations. |
canProxy, getSuperclass, toInterfacescreateDelegatorProxy, createInterceptorProxy, createInvokerProxypublic Object createDelegatorProxy(ClassLoader classLoader, ObjectProvider targetProvider, Class[] proxyClasses)
ProxyFactorydelegateProvider.createDelegatorProxy in class ProxyFactoryclassLoader - the class loader to use when generating the proxytargetProvider - the delegate providerproxyClasses - the interfaces that the proxy should implementdelegateProvider>public Object createInterceptorProxy(ClassLoader classLoader, Object target, Interceptor interceptor, Class[] proxyClasses)
ProxyFactoryinterceptor before eventually reaching the
target object.createInterceptorProxy in class ProxyFactoryclassLoader - the class loader to use when generating the proxytarget - the target objectinterceptor - the method interceptorproxyClasses - the interfaces that the proxy should implement.interceptor before eventually reaching the
target object.public Object createInvokerProxy(ClassLoader classLoader, Invoker invoker, Class[] proxyClasses)
ProxyFactoryInvoker to handle all method invocations.createInvokerProxy in class ProxyFactoryclassLoader - the class loader to use when generating the proxyinvoker - the invokerproxyClasses - the interfaces that the proxy should implementInvoker to handle all method invocationsCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.