org.wso2.carbon.rule.kernel.backend
Interface RuleBackendRuntime


public interface RuleBackendRuntime

interface to separate the Back end real rule implementation from the xml processing layer which is in the kernel module.


Method Summary
 void addRuleSet(org.wso2.carbon.rule.common.RuleSet ruleSet)
          Adds the rule set to back end runtime.
 Session createSession(int type)
          Some rules engines support different sessions types.
 

Method Detail

addRuleSet

void addRuleSet(org.wso2.carbon.rule.common.RuleSet ruleSet)
                throws org.wso2.carbon.rule.common.exception.RuleConfigurationException
Adds the rule set to back end runtime. Here the rule is depends on the real rule implementation.

Parameters:
ruleSet - - rule set to be added to runtime
Throws:
org.wso2.carbon.rule.common.exception.RuleConfigurationException - - if there are problems with the configuaration

createSession

Session createSession(int type)
                      throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
Some rules engines support different sessions types. For an example State ful and state less. We abstract this concept with session interface.

Parameters:
type - - whether it is a stateful or stateless sesstion
Returns:
- session created
Throws:
org.wso2.carbon.rule.common.exception.RuleRuntimeException - - if could not create the session


Copyright © 2015 WSO2. All rights reserved.