Package org.kie.spring.factorybeans.helper

Examples of org.kie.spring.factorybeans.helper.StatelessKSessionFactoryBeanHelper


        if ( "singleton".equalsIgnoreCase(scope) ) {
            KieObjectsResolver kieObjectsResolver = new KieObjectsResolver();

            kSession = kieObjectsResolver.resolveKSession(name, releaseId);
            if (kSession instanceof StatelessKieSession) {
                helper = new StatelessKSessionFactoryBeanHelper(this, (StatelessKieSession) kSession);
            } else if (kSession instanceof KieSession) {
                helper = new StatefulKSessionFactoryBeanHelper(this, (KieSession) kSession);
            }
            helper.internalAfterPropertiesSet();
            // get ksession from helper as it might change the ksession when persistence is configured
            kSession = helper.internalGetObject();
            attachLoggers((KieRuntimeEventManager) kSession);
            attachListeners((KieRuntimeEventManager) kSession);
        } else {
            if ("stateless".equalsIgnoreCase(type)) {
                helper = new StatelessKSessionFactoryBeanHelper(this, null);
            } else {
                helper = new StatefulKSessionFactoryBeanHelper(this, null);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.kie.spring.factorybeans.helper.StatelessKSessionFactoryBeanHelper

Copyright © 2018 www.massapicom. 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.