public static class RepositoryImpl.Factory extends Object implements ObjectFactory
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
ObjectFactory creating instances of RepositoryConfigRCC
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...
/>
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment) |
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance in interface ObjectFactoryExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.