Class ContainerRepositoryProvider
java.lang.Object
org.eclipse.emf.cdo.spi.server.ContainerRepositoryProvider
- All Implemented Interfaces:
IRepositoryProvider, org.eclipse.net4j.util.container.IManagedContainerProvider
- Direct Known Subclasses:
PluginRepositoryProvider
public class ContainerRepositoryProvider
extends Object
implements IRepositoryProvider, org.eclipse.net4j.util.container.IManagedContainerProvider
Resolves named repository instances from a managed container through
RepositoryFactory. It lets server
clients locate repositories that were configured as container elements.- Since:
- 2.0
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorsConstructorDescriptionContainerRepositoryProvider(org.eclipse.net4j.util.container.IManagedContainer container) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.net4j.util.container.IManagedContainergetRepository(String name) Resolves a repository by a name understood by this provider.Returns a sorted snapshot of the descriptions used for default repository elements in the managed container.
-
Constructor Details
-
ContainerRepositoryProvider
public ContainerRepositoryProvider(org.eclipse.net4j.util.container.IManagedContainer container)
-
-
Method Details
-
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer()- Specified by:
getContainerin interfaceorg.eclipse.net4j.util.container.IManagedContainerProvider
-
getRepository
Description copied from interface:IRepositoryProviderResolves a repository by a name understood by this provider.- Specified by:
getRepositoryin interfaceIRepositoryProvider- Parameters:
name- the repository lookup name or alias- Returns:
- the repository associated with the name, or
nullif the provider has no such repository
-
getRepositoryNames
Returns a sorted snapshot of the descriptions used for default repository elements in the managed container. These descriptions are the names accepted bygetRepository(String)and can therefore preserve container aliases that differ fromCDOCommonRepository.getName().- Specified by:
getRepositoryNamesin interfaceIRepositoryProvider- Returns:
- an immutable snapshot of the current default repository lookup names
-