|
jBPM distribution 6.2.0.CR1 | |||||||||
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
A builder implementation that follows the 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.
RuntimeEnvironmentBuilder
public static RuntimeEnvironmentBuilder getDefault()
RuntimeEnvironmentBuilder
that is based on:
RuntimeEnvironmentBuilder
that is already preconfigured with defaultsDefaultRuntimeEnvironment
public 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 defaultsDefaultRuntimeEnvironment
public 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 defaultsDefaultRuntimeEnvironment
public 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 defaultsDefaultRuntimeEnvironment
public RuntimeEnvironmentBuilder persistence(boolean persistenceEnabled)
persistence
in interface RuntimeEnvironmentBuilder
public 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 RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder knowledgeBase(KieBase kbase)
knowledgeBase
in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder userGroupCallback(UserGroupCallback callback)
userGroupCallback
in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder mapper(org.kie.internal.runtime.manager.Mapper mapper)
public RuntimeEnvironmentBuilder registerableItemsFactory(RegisterableItemsFactory factory)
registerableItemsFactory
in interface RuntimeEnvironmentBuilder
public org.kie.internal.runtime.manager.RuntimeEnvironment get()
get
in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder schedulerService(Object globalScheduler)
schedulerService
in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder classLoader(ClassLoader cl)
classLoader
in interface RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder newEmptyBuilder()
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
instance that allows to manually
set all required components instead of relying on any defaults.
newEmptyBuilder
in interface RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
public RuntimeEnvironmentBuilder newDefaultBuilder()
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newDefaultBuilder
in interface RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is already preconfigured with defaults
see DefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newDefaultInMemoryBuilder()
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newDefaultInMemoryBuilder
in interface RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is already preconfigured with defaults
see DefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newDefaultBuilder(String groupId, String artifactId, String version)
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newDefaultBuilder
in interface RuntimeEnvironmentBuilderFactory
groupId
- group id of kjarartifactId
- artifact id of kjarversion
- version number of kjar
RuntimeEnvironmentBuilder
that is already preconfigured with defaults
see DefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newDefaultBuilder(String groupId, String artifactId, String version, String kbaseName, String ksessionName)
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newDefaultBuilder
in interface RuntimeEnvironmentBuilderFactory
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 defaults
see DefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newDefaultBuilder(ReleaseId releaseId)
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newDefaultBuilder
in interface RuntimeEnvironmentBuilderFactory
releaseId
- ReleaseId
that described the kjar
RuntimeEnvironmentBuilder
that is already preconfigured with defaults
see DefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newDefaultBuilder(ReleaseId releaseId, String kbaseName, String ksessionName)
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newDefaultBuilder
in interface RuntimeEnvironmentBuilderFactory
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 defaults
see DefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newClasspathKmoduleDefaultBuilder()
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newClasspathKmoduleDefaultBuilder
in interface RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is already preconfigured with defaults
see DefaultRuntimeEnvironmentpublic RuntimeEnvironmentBuilder newClasspathKmoduleDefaultBuilder(String kbaseName, String ksessionName)
RuntimeEnvironmentBuilderFactory
RuntimeEnvironmentBuilder
that is based on:
newClasspathKmoduleDefaultBuilder
in interface RuntimeEnvironmentBuilderFactory
kbaseName
- name of the kbase defined in kmodule.xmlksessionName
- name of the ksession define in kmodule.xml
RuntimeEnvironmentBuilder
that is already preconfigured with defaults
see DefaultRuntimeEnvironmentprotected static Object getInstanceFromModel(org.kie.internal.runtime.conf.ObjectModel model, KieContainer kieContainer, Map<String,Object> contaxtParams)
|
jBPM distribution 6.2.0.CR1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |