it.eng.spago.cms.repositoryproviders
Class JndiRepositoryProvider

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

public class JndiRepositoryProvider
extends java.lang.Object

Implements methods to get the JSR 170 Repository instance from a jndi context


Field Summary
protected  Repository _repo
          JSR 170 Repository instance
 
Constructor Summary
JndiRepositoryProvider()
          Construct of the class, gets the JSR 170 repository object instance from a jndi context.
 
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

JndiRepositoryProvider

public JndiRepositoryProvider()
Construct of the class, gets the JSR 170 repository object instance from a jndi context. Obviously the JSR 170 repository must have been already registered into the jndi context It needs two parameters: into the Spago configuration files must be present an xml envelope structured like below:
 <CONTENTCONFIGURATION>
        <CONTENTREPOSITORY>
                <PARAMETERS>
                        <JNDICONTEXTNAME name="name of the jndi context" />
                        <JNDIOBJECTNAME name="name of the jndi jsr 170 repository resource" />
                </PARAMETERS>
 

Method Detail

getRepository

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

Parameters:
Repository - the JSR 170 repository object instance