public class LocalProcessEngineLookup extends Object implements ProcessEngineLookup
ProcessEngineLookup
for looking up or building a local
ProcessEngine
using the provided processEngineName (
ProcessEngines.NAME_DEFAULT
is used as default value). Can be used
for looking up existing ProcessEngine
s in the same ClassLoader as
this Class.
Use this Strategy if you want to build and manage a ProcessEngine
local to your application.
Note: Requires an "activiti.cfg.xml" to be available on the classpath.Modifier and Type | Field and Description |
---|---|
protected String |
processEngineName |
Constructor and Description |
---|
LocalProcessEngineLookup() |
Modifier and Type | Method and Description |
---|---|
int |
getPrecedence()
determines the ordering in which implementations are invoked.
|
ProcessEngine |
getProcessEngine()
This method will only be called once by the
ActivitiExtension , at startup |
String |
getProcessEngineName() |
void |
setProcessEngineName(String processEngineName) |
void |
ungetProcessEngine()
* This method will only be called once by the
ActivitiExtension , at shutdown |
protected String processEngineName
public int getPrecedence()
ProcessEngineLookup
getPrecedence
in interface ProcessEngineLookup
public ProcessEngine getProcessEngine()
ProcessEngineLookup
ActivitiExtension
, at startupgetProcessEngine
in interface ProcessEngineLookup
ProcessEngine
public String getProcessEngineName()
public void setProcessEngineName(String processEngineName)
public void ungetProcessEngine()
ProcessEngineLookup
ActivitiExtension
, at shutdownungetProcessEngine
in interface ProcessEngineLookup
Copyright © 2016 Alfresco. All rights reserved.