Examples of RuleEngineProvider


Examples of org.wso2.carbon.rule.kernel.config.RuleEngineProvider

        }
    }

    public synchronized void updateRules() throws ThrottlingException {
       
        RuleEngineProvider ruleEngineProvider =
                Util.getRuleEngineConfigService().getRuleConfig().getRuleEngineProvider();
       
        Class ruleBackendRuntimeFactoryClass;
        RuleBackendRuntime ruleBackendRuntime;
       
        try{
            ruleBackendRuntimeFactoryClass = Class.forName(ruleEngineProvider.getClassName());
            RuleBackendRuntimeFactory ruleBackendRuntimeFactory =
                    (RuleBackendRuntimeFactory) ruleBackendRuntimeFactoryClass.newInstance();
            ruleBackendRuntime =
                    ruleBackendRuntimeFactory.getRuleBackendRuntime(ruleEngineProvider.getProperties(),
                                                                    Thread.currentThread().getContextClassLoader());

            // create a rule set to add
            RuleSet ruleSet = new RuleSet();
            Rule rule = new Rule();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.