public class ForwardProxyContext extends GCUBEProxyContext<ForwardProxyContext.ReturnProxy>
GCUBEProxyContext for proxies which forward proxied calls to other proxies
determined dynamically on the basis of the annotations on the methods of the proxied object.
In particular, a forwarding proxy will forward calls based on the resolution of
primary annotations through a GCUBEProxyFactory. In addition, a forwarding proxy
will react to its own primary annotation ForwardProxyContext.ReturnProxy, by proxying the
return value of a proxied method invocation with another forwarding proxy. Essentially,
this allows annotation-based proxying to propagate deep within class hierarchies.| Modifier and Type | Class and Description |
|---|---|
static interface |
ForwardProxyContext.ReturnProxy
The primary annotation of the proxy associated with the context.
|
| Constructor and Description |
|---|
ForwardProxyContext() |
| Modifier and Type | Method and Description |
|---|---|
Class<ForwardProxyContext.ReturnProxy> |
getAnnotationClass()
Returns the class of the primary annotation.
|
net.sf.cglib.proxy.MethodInterceptor |
getInterceptor(Object proxied)
Returns the object which will intercept calls to the proxy.
|
getAnnotation, getProxyCaller, setAnnotation, setCallerpublic net.sf.cglib.proxy.MethodInterceptor getInterceptor(Object proxied)
getInterceptor in class GCUBEProxyContext<ForwardProxyContext.ReturnProxy>proxied - the proxied object.public Class<ForwardProxyContext.ReturnProxy> getAnnotationClass()
getAnnotationClass in class GCUBEProxyContext<ForwardProxyContext.ReturnProxy>Copyright © 2015. All Rights Reserved.