public class ActivitiProfiler extends Object implements ProcessEngineConfigurator
Modifier and Type | Field and Description |
---|---|
protected ProfileSession |
currentProfileSession |
protected static ActivitiProfiler |
INSTANCE |
protected List<ProfileSession> |
profileSessions |
Constructor and Description |
---|
ActivitiProfiler() |
Modifier and Type | Method and Description |
---|---|
void |
beforeInit(org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
Called before any initialisation has been done.
|
void |
configure(org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
Called when the engine boots up, before it is usable, but after the initialisation of internal objects is done.
|
ProfileSession |
getCurrentProfileSession() |
static ActivitiProfiler |
getInstance() |
int |
getPriority()
When the
ProcessEngineConfigurator instances are used, they are first ordered by this priority number (lowest to highest). |
List<ProfileSession> |
getProfileSessions() |
void |
reset() |
void |
setCurrentProfileSession(ProfileSession currentProfileSession) |
void |
setProfileSessions(List<ProfileSession> profileSessions) |
void |
startProfileSession(String name) |
void |
stopCurrentProfileSession() |
protected static ActivitiProfiler INSTANCE
protected ProfileSession currentProfileSession
protected List<ProfileSession> profileSessions
public static ActivitiProfiler getInstance()
public void beforeInit(org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
ProcessEngineConfigurator
ProcessEngineConfigurationImpl
which allows tweaking it programmatically.
An example is the jdbc url. When a ProcessEngineConfigurator
instance wants to change it, it needs to do it in this method, or otherwise the datasource would already have been created
with the 'old' value for the jdbc url.beforeInit
in interface ProcessEngineConfigurator
public void configure(org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
ProcessEngineConfigurator
ProcessEngineConfigurationImpl
which allows tweaking it programmatically.
An example is the ldap user/group manager, which is an addition to the engine. No default properties need to be overridden for this (otherwise the
ProcessEngineConfigurator.beforeInit(ProcessEngineConfigurationImpl)
method should be used) so the logic contained in this method is executed after initialisation of the default objects.
Probably a better name would be 'afterInit' (cfr ProcessEngineConfigurator.beforeInit(ProcessEngineConfigurationImpl)
), but not possible due to backwards compatibility.configure
in interface ProcessEngineConfigurator
public int getPriority()
ProcessEngineConfigurator
ProcessEngineConfigurator
instances are used, they are first ordered by this priority number (lowest to highest). If you have dependencies between
ProcessEngineConfigurator
instances, use the priorities accordingly to order them as needed.getPriority
in interface ProcessEngineConfigurator
public void reset()
public void startProfileSession(String name)
public void stopCurrentProfileSession()
public ProfileSession getCurrentProfileSession()
public void setCurrentProfileSession(ProfileSession currentProfileSession)
public List<ProfileSession> getProfileSessions()
public void setProfileSessions(List<ProfileSession> profileSessions)
Copyright © 2017 Alfresco. All rights reserved.