org.nuxeo.ecm.core.repository
Class RepositoryManager
java.lang.Object
org.nuxeo.ecm.core.repository.RepositoryManager
public class RepositoryManager
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPOSITORY_EVENT
public static final java.lang.String REPOSITORY_EVENT
- See Also:
- Constant Field Values
RepositoryManager
public RepositoryManager(RepositoryService repositoryService)
getRepository
public Repository getRepository(java.lang.String name)
throws java.lang.Exception
- Gets a repository given its name.
Null is returned if no repository with that name was registered.
- Parameters:
name
- the repository name
- Returns:
- the repository instance or null if no repository with that name
was registered
- Throws:
java.lang.Exception
- if any error occurs when trying to initialize the
repository
releaseRepository
public void releaseRepository(java.lang.String name)
- Releases the reference to the repository.
When the repository reference count becomes 0, the repository is
shutdown.
- Parameters:
name
- the repository name
getDescriptors
public java.util.Collection<RepositoryDescriptor> getDescriptors()
getRepositoryNames
public java.lang.String[] getRepositoryNames()
getDescriptor
public RepositoryDescriptor getDescriptor(java.lang.String name)
registerRepository
public void registerRepository(RepositoryDescriptor rd)
getOrRegisterRepository
public Repository getOrRegisterRepository(RepositoryDescriptor rd)
throws java.lang.Exception
- Throws:
java.lang.Exception
unregisterRepository
public void unregisterRepository(RepositoryDescriptor rd)
shutdown
public void shutdown()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.