站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

JackrabbitRepositoryConfigurator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.repository
Class JackrabbitRepositoryConfigurator

java.lang.Object
  extended by org.drools.repository.JackrabbitRepositoryConfigurator
All Implemented Interfaces:
JCRRepositoryConfigurator

public class JackrabbitRepositoryConfigurator
extends Object
implements JCRRepositoryConfigurator

This contains code to initialise the repository for jackrabbit. This is mostly a collection of utilities. Any jackrabbit specific code needs to go in here.


Constructor Summary
JackrabbitRepositoryConfigurator()
           
 
Method Summary
 javax.jcr.Repository getJCRRepository(String repoRootDir)
           
 void setupRulesRepository(javax.jcr.Session session)
          Attempts to setup the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JackrabbitRepositoryConfigurator

public JackrabbitRepositoryConfigurator()
Method Detail

getJCRRepository

public javax.jcr.Repository getJCRRepository(String repoRootDir)
Specified by:
getJCRRepository in interface JCRRepositoryConfigurator
Parameters:
repoRootDir - The directory where the data is stored. If empty, the repository will be generated there the first time it is used. If it is null, then a default location will be used (it won't fail).
Returns:
a new Repository instance. There should only be one instance of this in an application. Generally, one repository (which may be bineded to JNDI) can spawn multiple sessions for each user as needed. Typically this would be created on application startup.

setupRulesRepository

public void setupRulesRepository(javax.jcr.Session session)
                          throws RulesRepositoryException
Description copied from interface: JCRRepositoryConfigurator
Attempts to setup the repository. If the work that it tries to do has already been done, it will return without modifying the repository. This will register any node types, and setup bootstrap nodes as needed. This will not erase any data.

Specified by:
setupRulesRepository in interface JCRRepositoryConfigurator
Throws:
RulesRepositoryException


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.