org.jbpm.runtime.manager.impl
Class DefaultRuntimeEnvironment
java.lang.Object
org.jbpm.runtime.manager.impl.SimpleRuntimeEnvironment
org.jbpm.runtime.manager.impl.DefaultRuntimeEnvironment
- All Implemented Interfaces:
- SchedulerProvider, RuntimeEnvironment
public class DefaultRuntimeEnvironment
- extends SimpleRuntimeEnvironment
Default implementation of RuntimeEnvironment that aims at providing all
common settings with minimum need for configuration.
It configures automatically following components:
- uses
DefaultRegisterableItemsFactory
to provide work item handlers and event listeners instances
- EntityManagerFactory - if non given uses persistence unit with "org.jbpm.persistence.jpa" name
- SchedulerService - if non given tries to discover if Quartz based scheduler shall be used by checking if
"org.quartz.properties" system property is given, if not uses ThreadPool based scheduler with thread pool size set to 3
- uses simple MVEL based UserGroupCallback that requires mvel files for users and groups to be present on classpath
Fields inherited from class org.jbpm.runtime.manager.impl.SimpleRuntimeEnvironment |
classLoader, configuration, emf, environment, kbase, kbuilder, mapper, registerableItemsFactory, schedulerService, sessionConfigProperties, usePersistence, userGroupCallback |
Methods inherited from class org.jbpm.runtime.manager.impl.SimpleRuntimeEnvironment |
addAsset, addIfPresent, addToConfiguration, addToEnvironment, close, copyEnvironment, getClassLoader, getConfiguration, getEmf, getEnvironment, getKieBase, getMapper, getRegisterableItemsFactory, getSchedulerService, getSessionConfigProperties, getUserGroupCallback, setClassLoader, setEmf, setKieBase, setMapper, setRegisterableItemsFactory, setSchedulerService, setSessionConfigProperties, setUsePersistence, setUserGroupCallback, usePersistence |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRuntimeEnvironment
public DefaultRuntimeEnvironment()
DefaultRuntimeEnvironment
public DefaultRuntimeEnvironment(javax.persistence.EntityManagerFactory emf)
DefaultRuntimeEnvironment
public DefaultRuntimeEnvironment(javax.persistence.EntityManagerFactory emf,
GlobalSchedulerService globalSchedulerService)
DefaultRuntimeEnvironment
public DefaultRuntimeEnvironment(javax.persistence.EntityManagerFactory emf,
boolean usePersistence)
init
public void init()
- Overrides:
init
in class SimpleRuntimeEnvironment
discoverSchedulerService
protected static GlobalSchedulerService discoverSchedulerService()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.