org.drools.jsr94.rules.repository
Class RuleExecutionSetRepositoryLoader
java.lang.Object
org.drools.jsr94.rules.repository.RuleExecutionSetRepositoryLoader
public abstract class RuleExecutionSetRepositoryLoader
- extends Object
Load the RuleExecutionSetRepository
using the following algorithm.
1. If a resource with the name of META-INF/services/org.drools.jsr94.rules.repository.RuleExecutionSetRepository exists,
then its first line, if present, is used as the UTF-8 encoded name of the implementation class.
2. If the drools.properties file exists in the classpath and it is readable by the
java.util.Properties.load(InputStream) method and it contains an entry whose key is
org.drools.jsr94.rules.repository.RuleExecutionSetRepository, then the value of that
entry is used as the name of the implementation class.
3. If a system property with the name org.drools.jsr94.rules.repository.RuleExecutionSetRepository
is defined, then its value is used as the name of the implementation class.
4. Finally, a default implementation class name, if provided, is used.
- Version:
- $Revision$ $Date$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleExecutionSetRepositoryLoader
public RuleExecutionSetRepositoryLoader()
loadRuleExecutionSetRepository
public static RuleExecutionSetRepository loadRuleExecutionSetRepository(String defaultFactoryName)
- Loads the
RuleExecutionSetRepository
using the
algorithm described above.
- Parameters:
defaultFactoryName
- the className of the default
RuleExecutionSetRepository
implementation
- Returns:
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.