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 of ObjectFactory
for repository instances.
Works by creating a Reference
to a RepositoryConfig
instance based on the information obtained from the RepositoryImpl
's
Reference
.
Address Types:
RCF
- Class name for
ObjectFactory
creating instances of RepositoryConfig
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
for RepositoryConfig
instances"
org.apache.jackrabbit.jcr2spi.RepositoryImpl.class="class name of RepositoryConfig
implementation class"
...additional properties passed to the ObjectFactory
...
/>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RCF
public static final String RCF
RCC
public static final String RCC
RepositoryImpl.Factory
public RepositoryImpl.Factory()
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
throws Exception
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
Exception
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.