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 ofObjectFactory
for repository instances.Works by creating a
Reference
to aRepositoryConfig
instance based on the information obtained from theRepositoryImpl
'sReference
.Address Types:
RCF
- Class name for
ObjectFactory
creating instances ofRepositoryConfig
RCC
- Class name for
RepositoryConfig
instances
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 of
ObjectFactory
forRepositoryConfig
instances" org.apache.jackrabbit.jcr2spi.RepositoryImpl.class="class name ofRepositoryConfig
implementation 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 Object
getObjectInstance(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:
getObjectInstance
in interfaceObjectFactory
- Throws:
Exception
-
-