it.eng.spago.cms.repositoryproviders
Class RmiRepositoryProvider

java.lang.Object
  extended by it.eng.spago.cms.repositoryproviders.RmiRepositoryProvider

public class RmiRepositoryProvider
extends java.lang.Object

Implements methods to get the JSR 170 Repository instance from an RMI server


Field Summary
protected  Repository _repo
          JSR 170 Repository instance
 
Constructor Summary
RmiRepositoryProvider()
          Construct of the class, gets the JSR 170 repository object instance from an RMI server.
 
Method Summary
 Repository getRepository()
          Gets the JSR 170 repository object instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_repo

protected Repository _repo
JSR 170 Repository instance

Constructor Detail

RmiRepositoryProvider

public RmiRepositoryProvider()
Construct of the class, gets the JSR 170 repository object instance from an RMI server. Obviously the RMI level must have been configured before. It needs a parameter: into the Spago configuration files must be present an xml envelope structured like below:
 <CONTENTCONFIGURATION>
        <CONTENTREPOSITORY>
                <PARAMETERS>
                        <RMINAME name="name of the rmi repository resource" />
                </PARAMETERS>
 

Method Detail

getRepository

public Repository getRepository()
Gets the JSR 170 repository object instance

Parameters:
Repository - the JSR 170 repository object instance