public class JNDIRepositoryFactory extends java.lang.Object implements RepositoryFactory
Constructor and Description |
---|
JNDIRepositoryFactory(javax.naming.Context context,
java.lang.String name)
Creates a factory for looking up a repository from JNDI.
|
Modifier and Type | Method and Description |
---|---|
Repository |
getRepository()
Looks up and returns the configured repository.
|
public JNDIRepositoryFactory(javax.naming.Context context, java.lang.String name)
context
- JNDI contextname
- JNDI name of the repositorypublic Repository getRepository() throws RepositoryException
getRepository
in interface RepositoryFactory
RepositoryException
- if the repository can not be foundCopyright © 2010 - 2020 Adobe. All Rights Reserved