|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.servlet.CrossContextRepositoryFactory
public class CrossContextRepositoryFactory
Factory that returns a repository from an attribute in an identified servlet context.
| Constructor Summary | |
|---|---|
CrossContextRepositoryFactory(javax.servlet.ServletContext context,
java.lang.String path,
java.lang.String name)
Creates a factory that looks up a repository from the configured attribute of the configured servlet context. |
|
| Method Summary | |
|---|---|
javax.jcr.Repository |
getRepository()
Returns the repository from the configured attribute of the configured servlet context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrossContextRepositoryFactory(javax.servlet.ServletContext context,
java.lang.String path,
java.lang.String name)
context - base servlet contextpath - context path of the servlet context that contains the
repository attributename - name of the repository attribute| Method Detail |
|---|
public javax.jcr.Repository getRepository()
throws javax.jcr.RepositoryException
getRepository in interface RepositoryFactoryjavax.jcr.RepositoryException - if the servlet context or the repository
attribute does not exist, or if the
attribute does not contain a repository
instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||