org.wso2.carbon.rule.kernel.engine
Class RuleEngine

java.lang.Object
  extended by org.wso2.carbon.rule.kernel.engine.RuleEngine

public class RuleEngine
extends Object

this class is the layer in between top layers (i.e web service layer and the mediation layer) and the rule back end runtime. This class is used to create the sessions which does the data binding work.


Constructor Summary
RuleEngine(org.wso2.carbon.rule.common.RuleSet ruleSet, ClassLoader factClassLoader)
          Creates a Rule Engine Object.
 
Method Summary
 RuleSession createSession(int type)
          creates a session to be used with a pirticular service invocation.
 void loadRuleBackendRuntime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleEngine

public RuleEngine(org.wso2.carbon.rule.common.RuleSet ruleSet,
                  ClassLoader factClassLoader)
           throws org.wso2.carbon.rule.common.exception.RuleConfigurationException
Creates a Rule Engine Object. Rule engine object is kept per mediator and per service. When creating the rule Engine it has to pass the Backe end runtime factory and the class loader to load the fact classes properly.

Parameters:
ruleSet - - rule set specified either in the web service descriptor file or rule mediator file.
factClassLoader - - class loader which other pojo classes may exists.
Throws:
org.wso2.carbon.rule.common.exception.RuleConfigurationException - - if there is a problem with the configuration
Method Detail

loadRuleBackendRuntime

public void loadRuleBackendRuntime()
                            throws org.wso2.carbon.rule.common.exception.RuleConfigurationException
Throws:
org.wso2.carbon.rule.common.exception.RuleConfigurationException

createSession

public RuleSession createSession(int type)
                          throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
creates a session to be used with a pirticular service invocation.

Parameters:
type - - whther it is stateful or state less
Returns:
- session created
Throws:
org.wso2.carbon.rule.common.exception.RuleRuntimeException - - if problem occurs when creating session


Copyright © 2015 WSO2. All rights reserved.