org.jbpm.integration.console.session
Class SessionManagerFactory

java.lang.Object
  extended by org.jbpm.integration.console.session.SessionManagerFactory

public class SessionManagerFactory
extends Object

Factory for providing SessionManager instances


Constructor Summary
SessionManagerFactory()
           
 
Method Summary
static SessionManager newSessionManager(org.drools.KnowledgeBase kbase)
          Returns new instance of SessionManager interface that is either default implementation or custom one that is defined by system property: jbpm.session.manager
Example:
-Djbpm.session.manager=com.company.jbpm.CustomSessionManager
Custom implementation must implement org.jbpm.integration.console.session.SessionManager interface or extend org.jbpm.integration.console.session.AbstractSessionManager
Moreover such custom implementation must provide a constructor that accepts single parameter of a KnowledgeBase type Default implementation is org.jbpm.integration.console.session.MVELSingleSessionManager that builds stateful session based on session template given in either: default.session.templates - template that is bundled with jbpm as defaults - read only session.templates - custom configuration of jbpm console session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManagerFactory

public SessionManagerFactory()
Method Detail

newSessionManager

public static SessionManager newSessionManager(org.drools.KnowledgeBase kbase)
Returns new instance of SessionManager interface that is either default implementation or custom one that is defined by system property: jbpm.session.manager
Example:
-Djbpm.session.manager=com.company.jbpm.CustomSessionManager
Custom implementation must implement org.jbpm.integration.console.session.SessionManager interface or extend org.jbpm.integration.console.session.AbstractSessionManager
Moreover such custom implementation must provide a constructor that accepts single parameter of a KnowledgeBase type Default implementation is org.jbpm.integration.console.session.MVELSingleSessionManager that builds stateful session based on session template given in either:

Parameters:
kbase - knowledge base to be used to create session
Returns:
new instance of KnowledgeBaseManager


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.