dynaop
Interface ProxyContext


public interface ProxyContext

Proxy instance context.

Author:
Bob Lee (crazybob@crazybob.org)

Method Summary
 Handle getHandle()
          Gets serializable proxy reference.
 Interceptor[] getInterceptors(java.lang.reflect.Method method)
          Gets interceptors assigned to method.
 ProxyType getProxyType()
          Gets ProxyType for this proxy.
 boolean isClassProxy()
          Is this a class proxy (as opposed to a dynamic proxy)?
 java.lang.Object unwrap()
          Gets proxied object. Returns wrapped object for dynamic proxies, and creates new, non-proxied copy for class proxies.
 

Method Detail

getProxyType

ProxyType getProxyType()
Gets ProxyType for this proxy.


getInterceptors

Interceptor[] getInterceptors(java.lang.reflect.Method method)
Gets interceptors assigned to method. Performs defensive copy of interceptor array.


unwrap

java.lang.Object unwrap()
Gets proxied object. Returns wrapped object for dynamic proxies, and creates new, non-proxied copy for class proxies.


isClassProxy

boolean isClassProxy()
Is this a class proxy (as opposed to a dynamic proxy)?


getHandle

Handle getHandle()
Gets serializable proxy reference.