|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.emory.mathcs.rmix.spi.AbstractInvoker
Convenience base class for RMIX providers to implement
Invoker. Subclasses must provide implementation for
abstract method invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]).
Most implementations will additionally override
getParameter(java.lang.String) and setParameter(java.lang.String, java.lang.Object).
| Field Summary | |
protected BasicBindParams |
bindParams
|
protected java.lang.Class[] |
interfaces
|
protected RemoteRef |
ref
|
| Constructor Summary | |
protected |
AbstractInvoker(RemoteRef ref,
java.lang.ClassLoader cloader,
boolean resolveAll,
BasicBindParams bindParams)
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
|
Parameters |
getBindParameters()
Retrieves parameters associated with this invoker. |
java.lang.Class[] |
getInterfaces()
Gets remote interfaces which methods may be invoked on the target object through this invoker. |
java.lang.Object |
getParameter(java.lang.String name)
This implementation delegates to the setParameter
of the underlying RemoteRef. |
RemoteRef |
getRef()
Gets the RemoteRef that this invoker is bound to. |
int |
hashCode()
|
abstract java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] params)
Performs the remote method invocation. |
void |
setParameter(java.lang.String name,
java.lang.Object value)
This implementation always throws IllegalParameterException. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final RemoteRef ref
protected final java.lang.Class[] interfaces
protected BasicBindParams bindParams
| Constructor Detail |
protected AbstractInvoker(RemoteRef ref,
java.lang.ClassLoader cloader,
boolean resolveAll,
BasicBindParams bindParams)
throws java.lang.ClassNotFoundException
| Method Detail |
public abstract java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] params)
throws java.lang.Exception
Invoker
invoke in interface Invokerproxy - the client-side proxy that originated the invocation.m - the remote method to invoke.params - invocation parameters.
java.lang.Exception - exception thrown by the remote method.public RemoteRef getRef()
InvokerRemoteRef that this invoker is bound to.
getRef in interface InvokerRemoteRef of this invoker.public java.lang.Class[] getInterfaces()
Invoker
getInterfaces in interface Invokerpublic Parameters getBindParameters()
Invokerremote reference using these parameters will
create invoker indistinguishable from this one.
getBindParameters in interface Invoker
public void setParameter(java.lang.String name,
java.lang.Object value)
throws IllegalParameterException,
java.lang.UnsupportedOperationException
IllegalParameterException.
setParameter in interface Invokername - the name of the parameter to set.value - the value of the parameter.
java.lang.UnsupportedOperationException - if the parameter cannot be
written (for instance, if it is read-only).
IllegalParameterException - if the provider does not recognize
the parameter with that name, or if the parameter is not of
the appropriate type.Invoker.setParameter(java.lang.String, java.lang.Object)
public java.lang.Object getParameter(java.lang.String name)
throws IllegalParameterException,
java.lang.UnsupportedOperationException
setParameter
of the underlying RemoteRef.
getParameter in interface Invokername - the parameter name.
java.lang.UnsupportedOperationException - if the parameter cannot be
read (for instance, if it is write-only).
IllegalParameterException - if the provider does not recognize
the parameter with that name.Invoker.setParameter(java.lang.String, java.lang.Object)public boolean equals(java.lang.Object other)
public int hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||