uk.co.kimble.cobra.rmi
Class PersistentObjectFactoryImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--uk.co.kimble.cobra.rmi.PersistentObjectFactoryImpl

public class PersistentObjectFactoryImpl
extends java.rmi.server.UnicastRemoteObject
implements PersistentObjectFactory

Implements the factory pattern, enables remote clients to create objects

See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
PersistentObjectFactoryImpl(java.lang.String property_file)
          Constructor, initialises RMI middle tier
 
Method Summary
 void fred()
           
 PersistentSource getPersistentSource()
          Returns an instance of a remote PersistentSource
static void main(java.lang.String[] args)
          Called where COBRA used in n tier environment
 
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
 

Constructor Detail

PersistentObjectFactoryImpl

public PersistentObjectFactoryImpl(java.lang.String property_file)
                            throws java.rmi.RemoteException
Constructor, initialises RMI middle tier
Method Detail

fred

public void fred()
          throws java.rmi.RemoteException
Specified by:
fred in interface PersistentObjectFactory

getPersistentSource

public PersistentSource getPersistentSource()
                                     throws java.rmi.RemoteException,
                                            PersistentException
Returns an instance of a remote PersistentSource
Specified by:
getPersistentSource in interface PersistentObjectFactory
Throws:
java.rmi.RemoteException -  
PersistentException - if a PersistentSourceAdapter cannot be instantiated

main

public static void main(java.lang.String[] args)
Called where COBRA used in n tier environment