Examples of RuleBackendRuntimeFactory


Examples of org.wso2.carbon.rule.core.RuleBackendRuntimeFactory

     */
    public void init(RuleServerConfiguration description, ClassLoader ruleEngineClassLoader) {
        assertRuleServerConfigurationNull(description);
        assertRuleClassLoaderNull(ruleEngineClassLoader);

        RuleBackendRuntimeFactory factory = description.getRuleBackendRuntimeFactory();
        ruleBackendRuntime = factory.createRuleBackendRuntime(
                description.getProviderPropertiesAsMap(), ruleEngineClassLoader);
        this.initialized = true;
    }
View Full Code Here

Examples of org.wso2.carbon.rule.core.RuleBackendRuntimeFactory

            ruleProviderClass = "org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory";
            log.info("A Rule provider has not been specified. Using default one : " +
                    ruleProviderClass);
        }
        // create the rule engine provider
        RuleBackendRuntimeFactory runtimeFactory =
                (RuleBackendRuntimeFactory) ClassHelper.createInstance(ruleProviderClass);
        RuleServerConfiguration serverConfiguration = new RuleServerConfiguration(runtimeFactory);
        serverConfiguration.setQName(tagQName);

        if (providerElement != null) {
View Full Code Here

Examples of org.wso2.carbon.rule.kernel.backend.RuleBackendRuntimeFactory

        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.