|
jBPM distribution 6.1.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder
public class RuntimeEnvironmentBuilder
Builder implementation that follows fluent approach to build RuntimeEnvironments.
Comes with short cut methods to get predefined configurations of the RuntimeEnvironment:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.kie.api.runtime.manager.RuntimeEnvironmentBuilder |
|---|
RuntimeEnvironmentBuilder.Factory |
| Constructor Summary | |
|---|---|
RuntimeEnvironmentBuilder()
|
|
| Method Summary | |
|---|---|
RuntimeEnvironmentBuilder |
addAsset(Resource asset,
ResourceType type)
|
RuntimeEnvironmentBuilder |
addConfiguration(String name,
String value)
|
RuntimeEnvironmentBuilder |
addEnvironmentEntry(String name,
Object value)
|
RuntimeEnvironmentBuilder |
classLoader(ClassLoader cl)
|
RuntimeEnvironmentBuilder |
entityManagerFactory(Object emf)
|
org.kie.internal.runtime.manager.RuntimeEnvironment |
get()
|
static RuntimeEnvironmentBuilder |
getClasspathKmoduleDefault()
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
It relies on KieClasspathContainer that requires to have kmodule.xml present in META-INF folder which
defines the kjar itself. |
static RuntimeEnvironmentBuilder |
getClasspathKmoduleDefault(String kbaseName,
String ksessionName)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
It relies on KieClasspathContainer that requires to have kmodule.xml present in META-INF folder which
defines the kjar itself. |
static RuntimeEnvironmentBuilder |
getDefault()
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
|
static RuntimeEnvironmentBuilder |
getDefault(ReleaseId releaseId)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
static RuntimeEnvironmentBuilder |
getDefault(ReleaseId releaseId,
String kbaseName,
String ksessionName)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
static RuntimeEnvironmentBuilder |
getDefault(String groupId,
String artifactId,
String version)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
static RuntimeEnvironmentBuilder |
getDefault(String groupId,
String artifactId,
String version,
String kbaseName,
String ksessionName)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
static RuntimeEnvironmentBuilder |
getDefaultInMemory()
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
but it does not have persistence for process engine configured so it will only store process instances in memory |
static RuntimeEnvironmentBuilder |
getEmpty()
Provides completely empty RuntimeEnvironmentBuilder instance that allows to manually
set all required components instead of relying on any defaults. |
protected static Object |
getInstanceFromModel(org.kie.internal.runtime.conf.ObjectModel model,
KieContainer kieContainer,
Map<String,Object> contaxtParams)
|
RuntimeEnvironmentBuilder |
knowledgeBase(KieBase kbase)
|
RuntimeEnvironmentBuilder |
mapper(org.kie.internal.runtime.manager.Mapper mapper)
|
RuntimeEnvironmentBuilder |
newClasspathKmoduleDefaultBuilder()
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
It relies on KieClasspathContainer that requires to have kmodule.xml present in META-INF folder which
defines the kjar itself. |
RuntimeEnvironmentBuilder |
newClasspathKmoduleDefaultBuilder(String kbaseName,
String ksessionName)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
It relies on KieClasspathContainer that requires to have kmodule.xml present in META-INF folder which
defines the kjar itself. |
RuntimeEnvironmentBuilder |
newDefaultBuilder()
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
|
RuntimeEnvironmentBuilder |
newDefaultBuilder(ReleaseId releaseId)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
RuntimeEnvironmentBuilder |
newDefaultBuilder(ReleaseId releaseId,
String kbaseName,
String ksessionName)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
RuntimeEnvironmentBuilder |
newDefaultBuilder(String groupId,
String artifactId,
String version)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
RuntimeEnvironmentBuilder |
newDefaultBuilder(String groupId,
String artifactId,
String version,
String kbaseName,
String ksessionName)
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
This one is tailored to works smoothly with kjars as the notion of kbase and ksessions |
RuntimeEnvironmentBuilder |
newDefaultInMemoryBuilder()
Provides default configuration of RuntimeEnvironmentBuilder that is based on:
DefaultRuntimeEnvironment
but it does not have persistence for process engine configured so it will only store process instances in memory |
RuntimeEnvironmentBuilder |
newEmptyBuilder()
Provides completely empty RuntimeEnvironmentBuilder instance that allows to manually
set all required components instead of relying on any defaults. |
RuntimeEnvironmentBuilder |
persistence(boolean persistenceEnabled)
|
RuntimeEnvironmentBuilder |
registerableItemsFactory(RegisterableItemsFactory factory)
|
RuntimeEnvironmentBuilder |
schedulerService(Object globalScheduler)
|
RuntimeEnvironmentBuilder |
userGroupCallback(UserGroupCallback callback)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuntimeEnvironmentBuilder()
| Method Detail |
|---|
public static RuntimeEnvironmentBuilder getEmpty()
RuntimeEnvironmentBuilder instance that allows to manually
set all required components instead of relying on any defaults.
RuntimeEnvironmentBuilderpublic static RuntimeEnvironmentBuilder getDefault()
RuntimeEnvironmentBuilder that is based on:
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironmentpublic static RuntimeEnvironmentBuilder getDefaultInMemory()
RuntimeEnvironmentBuilder that is based on:
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public static RuntimeEnvironmentBuilder getDefault(String groupId,
String artifactId,
String version)
RuntimeEnvironmentBuilder that is based on:
groupId - group id of kjarartifactId - artifact id of kjarversion - version number of kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public static RuntimeEnvironmentBuilder getDefault(String groupId,
String artifactId,
String version,
String kbaseName,
String ksessionName)
RuntimeEnvironmentBuilder that is based on:
groupId - group id of kjarartifactId - artifact id of kjarversion - version number of kjarkbaseName - name of the kbase defined in kmodule.xml stored in kjarksessionName - name of the ksession define in kmodule.xml stored in kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironmentpublic static RuntimeEnvironmentBuilder getDefault(ReleaseId releaseId)
RuntimeEnvironmentBuilder that is based on:
releaseId - ReleaseId that described the kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public static RuntimeEnvironmentBuilder getDefault(ReleaseId releaseId,
String kbaseName,
String ksessionName)
RuntimeEnvironmentBuilder that is based on:
releaseId - ReleaseId that described the kjarkbaseName - name of the kbase defined in kmodule.xml stored in kjarksessionName - name of the ksession define in kmodule.xml stored in kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironmentpublic static RuntimeEnvironmentBuilder getClasspathKmoduleDefault()
RuntimeEnvironmentBuilder that is based on:
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public static RuntimeEnvironmentBuilder getClasspathKmoduleDefault(String kbaseName,
String ksessionName)
RuntimeEnvironmentBuilder that is based on:
kbaseName - name of the kbase defined in kmodule.xmlksessionName - name of the ksession define in kmodule.xml
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder persistence(boolean persistenceEnabled)
persistence in interface RuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder entityManagerFactory(Object emf)
entityManagerFactory in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder addAsset(Resource asset,
ResourceType type)
addAsset in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder addEnvironmentEntry(String name,
Object value)
addEnvironmentEntry in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder addConfiguration(String name,
String value)
addConfiguration in interface RuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder knowledgeBase(KieBase kbase)
knowledgeBase in interface RuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder userGroupCallback(UserGroupCallback callback)
userGroupCallback in interface RuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder mapper(org.kie.internal.runtime.manager.Mapper mapper)
public RuntimeEnvironmentBuilder registerableItemsFactory(RegisterableItemsFactory factory)
registerableItemsFactory in interface RuntimeEnvironmentBuilderpublic org.kie.internal.runtime.manager.RuntimeEnvironment get()
get in interface RuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder schedulerService(Object globalScheduler)
schedulerService in interface RuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder classLoader(ClassLoader cl)
classLoader in interface RuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder newEmptyBuilder()
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder instance that allows to manually
set all required components instead of relying on any defaults.
newEmptyBuilder in interface RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilderpublic RuntimeEnvironmentBuilder newDefaultBuilder()
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newDefaultBuilder in interface RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newDefaultInMemoryBuilder()
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newDefaultInMemoryBuilder in interface RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public RuntimeEnvironmentBuilder newDefaultBuilder(String groupId,
String artifactId,
String version)
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newDefaultBuilder in interface RuntimeEnvironmentBuilderFactorygroupId - group id of kjarartifactId - artifact id of kjarversion - version number of kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public RuntimeEnvironmentBuilder newDefaultBuilder(String groupId,
String artifactId,
String version,
String kbaseName,
String ksessionName)
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newDefaultBuilder in interface RuntimeEnvironmentBuilderFactorygroupId - group id of kjarartifactId - artifact id of kjarversion - version number of kjarkbaseName - name of the kbase defined in kmodule.xml stored in kjarksessionName - name of the ksession define in kmodule.xml stored in kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newDefaultBuilder(ReleaseId releaseId)
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newDefaultBuilder in interface RuntimeEnvironmentBuilderFactoryreleaseId - ReleaseId that described the kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public RuntimeEnvironmentBuilder newDefaultBuilder(ReleaseId releaseId,
String kbaseName,
String ksessionName)
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newDefaultBuilder in interface RuntimeEnvironmentBuilderFactoryreleaseId - ReleaseId that described the kjarkbaseName - name of the kbase defined in kmodule.xml stored in kjarksessionName - name of the ksession define in kmodule.xml stored in kjar
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newClasspathKmoduleDefaultBuilder()
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newClasspathKmoduleDefaultBuilder in interface RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
public RuntimeEnvironmentBuilder newClasspathKmoduleDefaultBuilder(String kbaseName,
String ksessionName)
RuntimeEnvironmentBuilderFactoryRuntimeEnvironmentBuilder that is based on:
newClasspathKmoduleDefaultBuilder in interface RuntimeEnvironmentBuilderFactorykbaseName - name of the kbase defined in kmodule.xmlksessionName - name of the ksession define in kmodule.xml
RuntimeEnvironmentBuilder that is already preconfigured with defaultsDefaultRuntimeEnvironment
protected static Object getInstanceFromModel(org.kie.internal.runtime.conf.ObjectModel model,
KieContainer kieContainer,
Map<String,Object> contaxtParams)
|
jBPM distribution 6.1.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||