public class RemoteMethodInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler, ISwitchCall
| Modifier and Type | Field and Description |
|---|---|
protected IInternalAccess |
comp
The local component.
|
protected ProxyReference |
pr
The proxy reference.
|
| Constructor and Description |
|---|
RemoteMethodInvocationHandler(IInternalAccess comp,
ProxyReference pr)
Create a new invocation handler.
|
| Modifier and Type | Method and Description |
|---|---|
static IService |
createRemoteServiceProxy(IInternalAccess localcomp,
IServiceIdentifier remotesvc)
Create a proxy object for a remote service.
|
boolean |
equals(java.lang.Object obj)
Test equality.
|
ProxyReference |
getProxyReference()
Get the pr.
|
int |
hashCode()
Hash code.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invoke a method.
|
boolean |
isSwitchCall()
Check if a switch call should be done.
|
protected IInternalAccess comp
protected ProxyReference pr
public RemoteMethodInvocationHandler(IInternalAccess comp, ProxyReference pr)
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.InvocationHandlerjava.lang.Throwablepublic ProxyReference getProxyReference()
public boolean isSwitchCall()
isSwitchCall in interface ISwitchCallpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static IService createRemoteServiceProxy(IInternalAccess localcomp, IServiceIdentifier remotesvc)
localcomp - The local component for sending/receiving messages.remotesvc - ID of the remote service.