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 RepositoryConfig
RCC
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 ofObjectFactory
forRepositoryConfig
instances" org.apache.jackrabbit.jcr2spi.RepositoryImpl.class="class name ofRepositoryConfig
implementation class" ...additional properties passed to theObjectFactory
... />
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 ObjectFactory
Exception
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.