|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.proxy.handler.Proxy
Proxy is an adaptor that allows a dynamic proxy to wrap an IReference. All methods invoked on the proxy are forwarded to the contained IReference, except for those defined in Object and IContextHolder, which are handled specially.
Field Summary | |
protected Context |
context
|
protected IReference |
reference
|
Fields inherited from interface electric.glue.IGLUELoggingConstants |
CLUSTER_DEBUG_EVENT, CLUSTER_EVENT, CONSOLE_DEBUG_EVENT, DEPLOY_EVENT, DETECTORS_EVENT, HTTP_EVENT, JMS_EVENT, REBINDING_EVENT, SECURITY_DEBUG_EVENT, SECURITY_DETAIL_EVENT, SERVLET_EVENT, SOAP_EVENT |
Fields inherited from interface electric.xml.IEXMLLoggingConstants |
MAPPING_EVENT, SCHEMA_EVENT |
Fields inherited from interface electric.util.log.ILoggingConstants |
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT |
Constructor Summary | |
Proxy()
Construct a Proxy without an associated IReference. |
|
Proxy(IReference reference)
Construct a Proxy that wraps the specified IReference. |
|
Proxy(IReference reference,
Context context)
Construct a Proxy that wraps the specified IReference. |
Method Summary | |
Context |
getContext()
|
IReference |
getReference()
Return the IReference that I use for messaging. |
WSDL |
getWSDL()
Return WSDL for the service that I reference. |
java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object[] args)
Invoke the operation associated with a particular method, using the specified arguments. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invoke the operation associated with a particular method, using the specified arguments. |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] args)
Invoke the operation associated with a particular method, using the specified arguments. |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] args,
java.lang.Class[] argTypes)
Invoke the operation associated with a particular method, using the specified arguments. |
java.lang.Object |
invoke(java.lang.String method,
java.lang.String[] args)
Invoke the operation associated with a particular method, using the specified arguments. |
void |
setContext(Context context)
|
void |
setReference(IReference reference)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IReference reference
protected Context context
Constructor Detail |
public Proxy()
public Proxy(IReference reference)
reference
- public Proxy(IReference reference, Context context)
reference
- context
- Method Detail |
public Context getContext()
getContext
in interface IContextHolder
public void setContext(Context context)
setContext
in interface IContextHolder
context
- public IReference getReference()
IProxy
getReference
in interface IProxy
public void setReference(IReference reference)
reference
- public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- The proxy.method
- The method to invokeargs
- The arguments.
java.lang.Throwable
- If an exception occurs.public WSDL getWSDL()
getWSDL
in interface IProxy
public java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface IProxy
method
- The method to invokeargs
- The arguments.
java.lang.Throwable
- If an exception occurs.public java.lang.Object invoke(java.lang.String method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface IProxy
method
- The method to invokeargs
- The arguments.
java.lang.Throwable
- If an exception occurs.public java.lang.Object invoke(java.lang.String method, java.lang.Object[] args, java.lang.Class[] argTypes) throws java.lang.Throwable
invoke
in interface IProxy
method
- The method to invokeargs
- The arguments.argTypes
-
java.lang.Throwable
- If an exception occurs.public java.lang.Object invoke(java.lang.String method, java.lang.String[] args) throws java.lang.Throwable
invoke
in interface IProxy
method
- The method to invokeargs
- The arguments.
java.lang.Throwable
- If an exception occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |