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