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 Details

    • ContainerRepositoryProvider

      public ContainerRepositoryProvider(org.eclipse.net4j.util.container.IManagedContainer container)
  • Method Details

    • getContainer

      public org.eclipse.net4j.util.container.IManagedContainer getContainer()
      Specified by:
      getContainer in interface org.eclipse.net4j.util.container.IManagedContainerProvider
    • getRepository

      public IRepository getRepository(String name)
      Description copied from interface: IRepositoryProvider
      Resolves a repository by a name understood by this provider.
      Specified by:
      getRepository in interface IRepositoryProvider
      Parameters:
      name - the repository lookup name or alias
      Returns:
      the repository associated with the name, or null if the provider has no such repository
    • getRepositoryNames

      public Set<String> getRepositoryNames()
      Returns a sorted snapshot of the descriptions used for default repository elements in the managed container. These descriptions are the names accepted by getRepository(String) and can therefore preserve container aliases that differ from CDOCommonRepository.getName().
      Specified by:
      getRepositoryNames in interface IRepositoryProvider
      Returns:
      an immutable snapshot of the current default repository lookup names