org.jbpm
Class JbpmServiceFactory

java.lang.Object
  extended byorg.jbpm.JbpmServiceFactory

public class JbpmServiceFactory
extends java.lang.Object

provides access to the service-objects. This implementation will instantiate the service-objects lazy and cache them. When using the singleton instance, make sure you've configured jbpm as specified in JbpmConfiguration.


Constructor Summary
JbpmServiceFactory(JbpmConfiguration jbpmConfiguration)
          allows the creation of multiple, differently configured jbpm instances inside one JVM (within one classloader).
 
Method Summary
static JbpmServiceFactory getInstance()
          retrieves the singleton instance.
 DefinitionService openDefinitionService()
          creates a definition service.
 DefinitionService openDefinitionService(java.sql.Connection jdbcConnection)
          creates a definition service with a user-supplied jdbc connection.
 ExecutionService openExecutionService(java.lang.String actorId)
          creates an execution service.
 ExecutionService openExecutionService(java.lang.String actorId, java.sql.Connection jdbcConnection)
          creates an execution service with a user-supplied jdbc connection.
 SchedulerService openSchedulerService()
          creates a scheduler service.
 SchedulerService openSchedulerService(java.sql.Connection jdbcConnection)
          creates a scheduler service with a user-supplied jdbc connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmServiceFactory

public JbpmServiceFactory(JbpmConfiguration jbpmConfiguration)
allows the creation of multiple, differently configured jbpm instances inside one JVM (within one classloader).

Method Detail

getInstance

public static JbpmServiceFactory getInstance()
retrieves the singleton instance.


openDefinitionService

public DefinitionService openDefinitionService()
creates a definition service.


openDefinitionService

public DefinitionService openDefinitionService(java.sql.Connection jdbcConnection)
creates a definition service with a user-supplied jdbc connection.


openExecutionService

public ExecutionService openExecutionService(java.lang.String actorId)
creates an execution service.


openExecutionService

public ExecutionService openExecutionService(java.lang.String actorId,
                                             java.sql.Connection jdbcConnection)
creates an execution service with a user-supplied jdbc connection.


openSchedulerService

public SchedulerService openSchedulerService()
creates a scheduler service.


openSchedulerService

public SchedulerService openSchedulerService(java.sql.Connection jdbcConnection)
creates a scheduler service with a user-supplied jdbc connection.



Version : jbpm-2.0