Class ServletRepositoryFactory

  • All Implemented Interfaces:

    public class ServletRepositoryFactory
    extends Object
    implements RepositoryFactory
    Factory that looks up a repository from the context of a given servlet.

    The default name of the repository attribute is "javax.jcr.Repository", but it can be changed by specifying an init parameter with the same name:

           This init parameter causes the repository to be looked up from
           the "my.repository.attribute" attribute instead of the default
    • Constructor Detail

      • ServletRepositoryFactory

        public ServletRepositoryFactory​(javax.servlet.GenericServlet servlet)
        Creates a factory for looking up a repository from the context of the given servlet.
        servlet - servlet whose context contains the repository