net.sourceforge.esw.transport
Class RMIInvocationHandlerServer

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--net.sourceforge.esw.transport.RMIInvocationHandlerServer
All Implemented Interfaces:
IRMIInvocationHandler, java.rmi.Remote, java.io.Serializable

public class RMIInvocationHandlerServer
extends java.rmi.server.UnicastRemoteObject
implements IRMIInvocationHandler

Handles Invocation on the client.

See Also:
Serialized Form

Field Summary
protected static java.lang.Class[] CLASSES
           
protected static java.lang.String EQUALS
           
protected  java.lang.Object subject
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected RMIInvocationHandlerServer(java.lang.Object aSubject)
          Creates a new RMIInvocationHandlerServer.
protected RMIInvocationHandlerServer(java.lang.Object aSubject, int port, java.rmi.server.RMIClientSocketFactory csf, java.rmi.server.RMIServerSocketFactory ssf)
          Creates a new RMIInvocationHandlerServer.
 
Method Summary
 java.lang.Class[] getInterfaces()
          Returns the interfaces to be used by the Proxy object.
 boolean hasDeclaredEqualsMethod()
          Returns if the Object this Handler represents has a .equals method declared.
 java.lang.Object invoke(java.lang.String aMethodName, java.lang.Object[] aArgsClass, java.lang.Object[] aArgs)
          Invokes the specified method against the current subject.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

subject

protected java.lang.Object subject

EQUALS

protected static final java.lang.String EQUALS

CLASSES

protected static final java.lang.Class[] CLASSES
Constructor Detail

RMIInvocationHandlerServer

protected RMIInvocationHandlerServer(java.lang.Object aSubject)
                              throws java.rmi.RemoteException
Creates a new RMIInvocationHandlerServer.

Look to Java Language Specification 6.6.1 for why this is callable from the transport package, but not callable outside this package.

Parameters:
aSubject - the subject for the proxy.

RMIInvocationHandlerServer

protected RMIInvocationHandlerServer(java.lang.Object aSubject,
                                     int port,
                                     java.rmi.server.RMIClientSocketFactory csf,
                                     java.rmi.server.RMIServerSocketFactory ssf)
                              throws java.rmi.RemoteException
Creates a new RMIInvocationHandlerServer.

passing in a Client Socket Factory and Server Socket Factory Look to Java Language Specification 6.6.1 for why this is callable from the transport package, but not callable outside this package.

Parameters:
aSubject - the subject for the proxy.
Method Detail

hasDeclaredEqualsMethod

public boolean hasDeclaredEqualsMethod()
                                throws java.rmi.RemoteException
Returns if the Object this Handler represents has a .equals method declared.

Specified by:
hasDeclaredEqualsMethod in interface IRMIInvocationHandler
Returns:
if the Object this Handler represents has a .equals method declared.

getInterfaces

public java.lang.Class[] getInterfaces()
                                throws java.rmi.RemoteException
Returns the interfaces to be used by the Proxy object.

Specified by:
getInterfaces in interface IRMIInvocationHandler
Returns:
the set of interfaces to use for the proxy.

invoke

public java.lang.Object invoke(java.lang.String aMethodName,
                               java.lang.Object[] aArgsClass,
                               java.lang.Object[] aArgs)
                        throws java.lang.Exception
Invokes the specified method against the current subject.

Specified by:
invoke in interface IRMIInvocationHandler


Copyright 2002 Free Software Foundation. All Rights Reserved.