org.ow2.bonita.util
Class EnvTool

java.lang.Object
  extended by org.ow2.bonita.util.EnvTool

public final class EnvTool
extends java.lang.Object

This class holds the EnvironmentFactory singleton. The EnvironmentFactory returned by #getEnvironmentFactory() comes from the parsing of the resource defined by the property #ENVIRONMENT_PROPERTY. If this property has not been set, the #DEFAULT_ENVIRONMENT resource is used and parsed.

Author:
Marc Blachon, Guillaume Porcher, Charles Souillard, Miguel Valdes, Pierre Vigneras

Method Summary
static
<T> T
get(java.lang.Class<T> class1, java.lang.String key)
           
static org.ow2.bonita.services.Archiver getArchiver()
           
static org.jbpm.client.CommandService getCommandService()
           
static org.ow2.bonita.services.History getHistory()
           
static org.ow2.bonita.services.Journal getJournal()
           
static org.ow2.bonita.persistence.XpdlPersistenceService getPersistenceService()
           
static org.ow2.bonita.services.Recorder getRecorder()
           
static org.ow2.bonita.runtime.Repository getRepository()
           
static int getRetry()
           
static org.jbpm.env.session.TimerSession getTimerSession()
           
static java.lang.String getUserId()
           
static void setUserId(java.lang.String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRepository

public static org.ow2.bonita.runtime.Repository getRepository()

getRecorder

public static org.ow2.bonita.services.Recorder getRecorder()

getJournal

public static org.ow2.bonita.services.Journal getJournal()

getArchiver

public static org.ow2.bonita.services.Archiver getArchiver()

getHistory

public static org.ow2.bonita.services.History getHistory()

getCommandService

public static org.jbpm.client.CommandService getCommandService()

getPersistenceService

public static org.ow2.bonita.persistence.XpdlPersistenceService getPersistenceService()

getUserId

public static java.lang.String getUserId()

setUserId

public static void setUserId(java.lang.String userId)

get

public static <T> T get(java.lang.Class<T> class1,
                        java.lang.String key)

getTimerSession

public static org.jbpm.env.session.TimerSession getTimerSession()

getRetry

public static int getRetry()