public class RuleEngine extends Object
Constructor and Description |
---|
RuleEngine(org.wso2.carbon.rule.common.RuleSet ruleSet,
ClassLoader factClassLoader)
Creates a Rule Engine Object.
|
Modifier and Type | Method and Description |
---|---|
RuleSession |
createSession(int type)
creates a session to be used with a pirticular service invocation.
|
void |
loadRuleBackendRuntime() |
public RuleEngine(org.wso2.carbon.rule.common.RuleSet ruleSet, ClassLoader factClassLoader) throws org.wso2.carbon.rule.common.exception.RuleConfigurationException
ruleSet
- - rule set specified either in the web service descriptor file or rule mediator file.factClassLoader
- - class loader which other pojo classes may exists.org.wso2.carbon.rule.common.exception.RuleConfigurationException
- - if there is a problem with the configurationpublic void loadRuleBackendRuntime() throws org.wso2.carbon.rule.common.exception.RuleConfigurationException
org.wso2.carbon.rule.common.exception.RuleConfigurationException
public RuleSession createSession(int type) throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
type
- - whther it is stateful or state lessorg.wso2.carbon.rule.common.exception.RuleRuntimeException
- - if problem occurs when creating sessionCopyright © 2018 WSO2. All rights reserved.