Package org.apache.jackrabbit.jcr2spi
Class RepositoryImpl.Factory
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.RepositoryImpl.Factory
-
- All Implemented Interfaces:
ObjectFactory
- Enclosing class:
- RepositoryImpl
public static class RepositoryImpl.Factory extends Object implements ObjectFactory
Implementation ofObjectFactoryfor repository instances.Works by creating a
Referenceto aRepositoryConfiginstance based on the information obtained from theRepositoryImpl'sReference.Address Types:
RCF- Class name for
ObjectFactorycreating instances ofRepositoryConfig RCC- Class name for
RepositoryConfiginstances
All other types are copied over verbatim to the new
Reference.A sample JNDI configuration inside a servlet container's
server.xml:<Resource name="jcr/repositoryname" auth="Container" type="org.apache.jackrabbit.jcr2spi.RepositoryImpl" factory="org.apache.jackrabbit.jcr2spi.RepositoryImpl$Factory" org.apache.jackrabbit.jcr2spi.RepositoryImpl.factory="class name ofObjectFactoryforRepositoryConfiginstances" org.apache.jackrabbit.jcr2spi.RepositoryImpl.class="class name ofRepositoryConfigimplementation class" ...additional properties passed to theObjectFactory... />
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
-
-
-
Method Detail
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
- Specified by:
getObjectInstancein interfaceObjectFactory- Throws:
Exception
-
-