org.apache.cocoon.jcr
Class JackrabbitRepository

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.jcr.AbstractRepository
          extended byorg.apache.cocoon.jcr.JackrabbitRepository
All Implemented Interfaces:
Component, Configurable, Contextualizable, Disposable, LogEnabled, javax.jcr.Repository, 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.java 293188 2005-10-03 00:35:04Z antonio $
See Also:
AbstractRepository

Field Summary
 
Fields inherited from class org.apache.cocoon.jcr.AbstractRepository
context, delegate, JCR_SESSION_REQUEST_ATTRIBUTE, loginResolver, manager, passwordResolver, ROLE
 
Fields inherited from interface javax.jcr.Repository
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC
 
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-2005 The Apache Software Foundation. All Rights Reserved.