org.apache.cocoon.jcr
Class JackrabbitRepository

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.jcr.AbstractRepository
          extended by org.apache.cocoon.jcr.JackrabbitRepository
All Implemented Interfaces:
Disposable, Component, Configurable, Contextualizable, LogEnabled, Serviceable, ThreadSafe

public class JackrabbitRepository
extends AbstractRepository

JackrabbitRepository is a JCR repository component based on Jackrabbit

The configuration is as follows:

    <jcr-repository>
      <credentials login="expression" password="expression"/>
      <home src="file://path/to/repository"/>
      <configuration src="resource://your/application/jcr/repository.xml"/>
    </jcr-repository>
 
The home URI points to the base location of the repository, and configuration points to the Jackrabbit repository configuration file.

Version:
$Id: JackrabbitRepository.html 1304258 2012-03-23 10:09:27Z ilgrosso $
See Also:
AbstractRepository

Field Summary
 
Fields inherited from class org.apache.cocoon.jcr.AbstractRepository
context, delegate, JCR_SESSION_REQUEST_ATTRIBUTE, loginResolver, manager, passwordResolver, ROLE
 
Constructor Summary
JackrabbitRepository()
           
 
Method Summary
 void configure(Configuration config)
           
 void dispose()
           
 
Methods inherited from class org.apache.cocoon.jcr.AbstractRepository
contextualize, getDescriptor, getDescriptorKeys, login, login, login, login, service
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JackrabbitRepository

public JackrabbitRepository()
Method Detail

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Overrides:
configure in class AbstractRepository
Throws:
ConfigurationException

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Overrides:
dispose in class AbstractRepository


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.