ermi.registry
Class FileRegistry

java.lang.Object
  |
  +--ermi.registry.FileRegistry

public class FileRegistry
extends java.lang.Object

To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.


Constructor Summary
FileRegistry()
           
 
Method Summary
static ermi.ERemote loadERef(java.util.Properties env)
          Returns a reference, a stub, for the remote object associated with the specified information in the properties Object.
static ermi.ERemote loadERef(java.lang.String fileName)
          Returns a reference, a stub, for the remote object associated with the specified file location.
static EFilter loadFilter(java.lang.String objId, java.lang.String filterClass)
          Returns a reference to a Filter that intercepts object calls to remote object called objId in the registry.
static ermi.ERemote loadStub(java.util.Properties env)
          Returns a reference, a stub, for the remote object associated with the specified information in the properties Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRegistry

public FileRegistry()
Method Detail

loadERef

public static ermi.ERemote loadERef(java.lang.String fileName)
                             throws RemoteException
Returns a reference, a stub, for the remote object associated with the specified file location.

Parameters:
fileName - Name of properties file containing object location
Returns:
ermi.Eremote Reference to the remote object
Throws:
RemoteException - - if the connection with the event service fails.

loadERef

public static ermi.ERemote loadERef(java.util.Properties env)
                             throws RemoteException
Returns a reference, a stub, for the remote object associated with the specified information in the properties Object.

Parameters:
env - Object properties containing object location
Returns:
ermi.Eremote Reference to the remote object
Throws:
RemoteException - - if the connection with the event service fails.

loadStub

public static ermi.ERemote loadStub(java.util.Properties env)
                             throws RemoteException
Returns a reference, a stub, for the remote object associated with the specified information in the properties Object. The stub is not initialized and this is not connected to the event bus. This method is internally used to pass remote objects by reference.

Parameters:
env - Object properties containing object location
Returns:
ermi.Eremote Reference to the remote object (stub not initialized)
Throws:
RemoteException - - if the connection with the event service fails.

loadFilter

public static EFilter loadFilter(java.lang.String objId,
                                 java.lang.String filterClass)
                          throws RemoteException
Returns a reference to a Filter that intercepts object calls to remote object called objId in the registry.

Returns:
ermi.Eremote Reference to the remote object
Throws:
RemoteException - - if the connection with the event service fails.