public abstract class RuleExecutionSetRepositoryLoader extends Object
RuleExecutionSetRepository
using the following algorithm.
1. If a resource with the name of META-INF/services/org.kie.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.kie.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.kie.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.Constructor and Description |
---|
RuleExecutionSetRepositoryLoader() |
Modifier and Type | Method and Description |
---|---|
static RuleExecutionSetRepository |
loadRuleExecutionSetRepository(String defaultFactoryName)
Loads the
RuleExecutionSetRepository using the
algorithm described above. |
public static RuleExecutionSetRepository loadRuleExecutionSetRepository(String defaultFactoryName)
RuleExecutionSetRepository
using the
algorithm described above.defaultFactoryName
- the className of the default
RuleExecutionSetRepository
implementationCopyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.