Interface JcrRepositoryProvider


  • public interface JcrRepositoryProvider
    Interface to define the contract between service provider and jcr session pool. The jcr session pool expects the service provider to give a implementation for this.
    Version:
    $Id$
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.jcr.Repository getRepository​(String repositoryURI)
      Retrieves JCR Repository from this provider by specifying a repository URI.
      void returnRepository​(javax.jcr.Repository repository)
      Returns the repository back to the provider After returning, the caller cannot use the repository any more.
    • Method Detail

      • getRepository

        javax.jcr.Repository getRepository​(String repositoryURI)
                                    throws javax.jcr.RepositoryException
        Retrieves JCR Repository from this provider by specifying a repository URI.
        Parameters:
        repositoryURI - the URI for the repository
        Returns:
        javax.jcr.Repository
        Throws:
        javax.jcr.RepositoryException
      • returnRepository

        void returnRepository​(javax.jcr.Repository repository)
        Returns the repository back to the provider After returning, the caller cannot use the repository any more.
        Parameters:
        repository -