Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package org.modeshape.web.jcr.spi

Service provider interface (SPI) for the JCR implementation that backs the ModeShape web libraries.

See:
Description

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

Class Summary
FactoryRepositoryProvider | Repository provider backed by the ModeShape `RepositoryFactory` implementation.

Exception Summary
NoSuchRepositoryException | Exception thrown when an operation attempts to access a repository that does not exist.

## Package org.modeshape.web.jcr.spi Description

Service provider interface (SPI) for the JCR implementation that backs the ModeShape web libraries.

Service providers must provide a thread-safe implementation of the `RepositoryProvider` interface which is then bundled in the server WAR. The web library can be configured to use the provider by specifying the fully-qualified name (FQN) of the custom repository provider class in the `org.modeshape.web.jcr.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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

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