org.modeshape.jcr.api

## Interface Repositories

- All Known Subinterfaces:
    RepositoryFactory
  All Known Implementing Classes:
    JcrRepositoryFactory, ModeShapeEngine

      public interface Repositories

  Representation of a generic container of multiple `Repository` instances. This interface helps decouple applications that use JCR repositories from the actual JCR implementation.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Repository` | `getRepository(String repositoryName)` Return the JCR Repository with the supplied name.
    `Set<String>` | `getRepositoryNames()` Get the names of the available repositories.

- - ### Method Detail

    - #### getRepositoryNames

          Set<String> getRepositoryNames()

      Get the names of the available repositories.
      Returns:
        the immutable set of repository names provided by this server; never null

    - #### getRepository

          Repository getRepository(String repositoryName)
                                   throws RepositoryException

      Return the JCR Repository with the supplied name.
      Parameters:
        `repositoryName` - the name of the repository to return; may not be null
      Returns:
        the repository with the given name; never null
      Throws:
        `RepositoryException` - if no repository exists with the given name or there is an error communicating with the repository

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.