org.nuxeo.ecm.core.repository
Class RepositoryManager
java.lang.Object
org.nuxeo.ecm.core.repository.RepositoryManager
public class RepositoryManager
- extends Object
- Author:
- Bogdan Stefanescu
REPOSITORY_EVENT
public static final String REPOSITORY_EVENT
- See Also:
- Constant Field Values
RepositoryManager
public RepositoryManager(RepositoryService repositoryService)
getRepository
public Repository getRepository(String name)
throws 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:
Exception
- if any error occurs when trying to initialize the
repository
releaseRepository
public void releaseRepository(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 Collection<RepositoryDescriptor> getDescriptors()
getRepositoryNames
public String[] getRepositoryNames()
getDescriptor
public RepositoryDescriptor getDescriptor(String name)
registerRepository
public void registerRepository(RepositoryDescriptor rd)
getOrRegisterRepository
public Repository getOrRegisterRepository(RepositoryDescriptor rd)
throws Exception
- Throws:
Exception
unregisterRepository
public void unregisterRepository(RepositoryDescriptor rd)
shutdown
public void shutdown()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.