ANNOTATION - The type of the primary annotation.public abstract class GCUBEProxyContext<ANNOTATION extends Annotation> extends Object
Annotations on the methods or class of the proxied object.
Among these, the primary annotation is the annotation by which this context will be discovered by a ForwardProxyContext
through a GCUBEProxyFactory.| Constructor and Description |
|---|
GCUBEProxyContext() |
| Modifier and Type | Method and Description |
|---|---|
ANNOTATION |
getAnnotation()
Returns the primary annotation associated with the latest method called on the proxy.
|
abstract Class<? extends ANNOTATION> |
getAnnotationClass()
Returns the class of the primary annotation.
|
abstract net.sf.cglib.proxy.MethodInterceptor |
getInterceptor(Object proxied)
Returns the object which will intercept calls to the proxy.
|
StackTraceElement |
getProxyCaller()
Returns the
StackTraceElement of the latest call to the proxy. |
void |
setAnnotation(ANNOTATION annotation)
Sets the primary annotation associated with the latest method called on the proxy.
|
void |
setCaller(StackTraceElement caller)
Sets the
StackTraceElement of the latest call to the proxy. |
public abstract net.sf.cglib.proxy.MethodInterceptor getInterceptor(Object proxied)
proxied - the proxied object.public abstract Class<? extends ANNOTATION> getAnnotationClass()
public void setAnnotation(ANNOTATION annotation)
annotation - the annotation.public ANNOTATION getAnnotation()
public void setCaller(StackTraceElement caller)
StackTraceElement of the latest call to the proxy.caller - the call element.public StackTraceElement getProxyCaller()
StackTraceElement of the latest call to the proxy.Copyright © 2015. All Rights Reserved.