|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.proxies.GCUBEProxyContext<ANNOTATION>
ANNOTATION - The type of the primary annotation.public abstract class GCUBEProxyContext<ANNOTATION extends Annotation>
Partial implementation of the context of operation of a proxy whose behaviour is associated with the presence of
one or more 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 Summary | |
|---|---|
GCUBEProxyContext()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GCUBEProxyContext()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||