当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
JCRRepositoryConfigurator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.repository
Interface JCRRepositoryConfigurator
- All Known Implementing Classes:
- JackrabbitRepositoryConfigurator
public interface JCRRepositoryConfigurator
This interface is required so different JCR implementations can provide their own configuration mechanism.
- Author:
- Michael Neale
getJCRRepository
javax.jcr.Repository getJCRRepository(String repositoryRootDirectory)
- Parameters:
repositoryRootDirectory
- 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
void setupRulesRepository(javax.jcr.Session session)
throws RulesRepositoryException
- 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.
- Throws:
RulesRepositoryException
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.