org.drools.repository
Class RulesRepositoryConfigurator
java.lang.Object
org.drools.repository.RulesRepositoryConfigurator
public class RulesRepositoryConfigurator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTIES_FILE
public static final String PROPERTIES_FILE
- The classpath resource from which the RepositoryFactory properties are loaded. This is currently "/drools_repository.properties".
- See Also:
- Constant Field Values
CONFIGURATOR_CLASS
public static final String CONFIGURATOR_CLASS
- See Also:
- Constant Field Values
getJCRRepository
public javax.jcr.Repository getJCRRepository()
getInstance
public static RulesRepositoryConfigurator getInstance(Properties properties)
- Creates an instance of the RulesRepositoryConfigurator, which stores a reference to the under laying JCRRepository.
- Parameters:
properties
- - if null, they will be read from the /drools_repository.properties file.
- Returns:
- RulesRepositoryConfigurator
- Throws:
javax.jcr.RepositoryException
login
public javax.jcr.Session login(String userName,
String password)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
login
public javax.jcr.Session login(String userName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
setupRepository
public void setupRepository(javax.jcr.Session session)
throws javax.jcr.RepositoryException
- 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:
javax.jcr.RepositoryException
shutdown
public void shutdown()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.