Class JNDIRepositoryFactory

  • All Implemented Interfaces:
    RepositoryFactory

    @Deprecated(forRemoval=true)
    public class JNDIRepositoryFactory
    extends java.lang.Object
    implements RepositoryFactory
    Deprecated, for removal: This API element is subject to removal in a future version.
    Factory that looks up a repository from JNDI.

    This class is deprecated and will be removed in future releases.

    Since:
    1.4
    • Constructor Summary

      Constructors 
      Constructor Description
      JNDIRepositoryFactory​(javax.naming.Context context, java.lang.String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a factory for looking up a repository from JNDI.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      javax.jcr.Repository getRepository()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Looks up and returns the configured repository.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JNDIRepositoryFactory

        public JNDIRepositoryFactory​(javax.naming.Context context,
                                     java.lang.String name)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a factory for looking up a repository from JNDI.
        Parameters:
        context - JNDI context
        name - JNDI name of the repository
    • Method Detail

      • getRepository

        public javax.jcr.Repository getRepository()
                                           throws javax.jcr.RepositoryException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Looks up and returns the configured repository.
        Specified by:
        getRepository in interface RepositoryFactory
        Returns:
        repository instance
        Throws:
        javax.jcr.RepositoryException - if the repository can not be found