Package org.jboss.dna.web.jcr.rest.spi

Service provider interface (SPI) for the JCR implementation that backs the DNA JCR REST server.

See:
          Description


Interface Summary
RepositoryProvider Interface for any class that provides access to one or more local JCR repositories.
 

Class Summary
DnaJcrRepositoryProvider Repository provider backed by the DNA JCR implementation.
 

Package org.jboss.dna.web.jcr.rest.spi Description

Service provider interface (SPI) for the JCR implementation that backs the DNA JCR REST server.

Service providers must provide a thread-safe implementation of the RepositoryProvider interface which is then bundled in the server WAR. The REST server can be configured to use the provider by specifying the fully-qualified name (FQN) of the custom repository provider class in the org.jboss.dna.web.jcr.rest.REPOSITORY_PROVIDER context parameter in the web configuration file (web.xml).

Custom repository providers for JCR implementations that do not support hosting multiple repositories in the same server can context can ignore the repositoryName parameter for RepositoryProvider#getSession(javax.servlet.http.HttpServletRequest, String, String), but must always return a non-empty, non-null set containing some default repository name from RepositoryProvider#getJcrRepositoryNames().

See Also:
RepositoryFactory, RepositoryProvider


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