Package org.kie.api.runtime.manager
Class RuntimeEnvironmentBuilder.Factory
- java.lang.Object
-
- org.kie.api.runtime.manager.RuntimeEnvironmentBuilder.Factory
-
- All Implemented Interfaces:
RuntimeEnvironmentBuilderFactory
- Enclosing interface:
- RuntimeEnvironmentBuilder
public static class RuntimeEnvironmentBuilder.Factory extends Object implements RuntimeEnvironmentBuilderFactory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeEnvironmentBuilderFactory
get()
Returns a reference to the RuntimeEnvironmentBuilderFactory singletonRuntimeEnvironmentBuilder
newClasspathKmoduleDefaultBuilder()
Provides default configuration ofRuntimeEnvironmentBuilder
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 ofRuntimeEnvironmentBuilder
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 ofRuntimeEnvironmentBuilder
that is based on: DefaultRuntimeEnvironmentRuntimeEnvironmentBuilder
newDefaultBuilder(String groupId, String artifactId, String version)
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on: DefaultRuntimeEnvironment This one is tailored to works smoothly with kjars as the notion of kbase and ksessionsRuntimeEnvironmentBuilder
newDefaultBuilder(String groupId, String artifactId, String version, String kbaseName, String ksessionName)
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on: DefaultRuntimeEnvironment This one is tailored to works smoothly with kjars as the notion of kbase and ksessionsRuntimeEnvironmentBuilder
newDefaultBuilder(ReleaseId releaseId)
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on: DefaultRuntimeEnvironment This one is tailored to works smoothly with kjars as the notion of kbase and ksessionsRuntimeEnvironmentBuilder
newDefaultBuilder(ReleaseId releaseId, String kbaseName, String ksessionName)
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on: DefaultRuntimeEnvironment This one is tailored to works smoothly with kjars as the notion of kbase and ksessionsRuntimeEnvironmentBuilder
newDefaultInMemoryBuilder()
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on: DefaultRuntimeEnvironment but it does not have persistence for process engine configured so it will only store process instances in memoryRuntimeEnvironmentBuilder
newEmptyBuilder()
Provides completely emptyRuntimeEnvironmentBuilder
instance that allows to manually set all required components instead of relying on any defaults.
-
-
-
Method Detail
-
get
public static RuntimeEnvironmentBuilderFactory get()
Returns a reference to the RuntimeEnvironmentBuilderFactory singleton
-
newEmptyBuilder
public RuntimeEnvironmentBuilder newEmptyBuilder()
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides completely emptyRuntimeEnvironmentBuilder
instance that allows to manually set all required components instead of relying on any defaults.- Specified by:
newEmptyBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Returns:
- new instance of
RuntimeEnvironmentBuilder
-
newDefaultBuilder
public RuntimeEnvironmentBuilder newDefaultBuilder()
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newDefaultBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
newDefaultInMemoryBuilder
public RuntimeEnvironmentBuilder newDefaultInMemoryBuilder()
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newDefaultInMemoryBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
newDefaultBuilder
public RuntimeEnvironmentBuilder newDefaultBuilder(String groupId, String artifactId, String version)
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newDefaultBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Parameters:
groupId
- group id of kjarartifactId
- artifact id of kjarversion
- version number of kjar- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
newDefaultBuilder
public RuntimeEnvironmentBuilder newDefaultBuilder(String groupId, String artifactId, String version, String kbaseName, String ksessionName)
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newDefaultBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Parameters:
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- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
newDefaultBuilder
public RuntimeEnvironmentBuilder newDefaultBuilder(ReleaseId releaseId)
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newDefaultBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Parameters:
releaseId
-ReleaseId
that described the kjar- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
newDefaultBuilder
public RuntimeEnvironmentBuilder newDefaultBuilder(ReleaseId releaseId, String kbaseName, String ksessionName)
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newDefaultBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Parameters:
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- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
newClasspathKmoduleDefaultBuilder
public RuntimeEnvironmentBuilder newClasspathKmoduleDefaultBuilder()
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newClasspathKmoduleDefaultBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
newClasspathKmoduleDefaultBuilder
public RuntimeEnvironmentBuilder newClasspathKmoduleDefaultBuilder(String kbaseName, String ksessionName)
Description copied from interface:RuntimeEnvironmentBuilderFactory
Provides default configuration ofRuntimeEnvironmentBuilder
that is based on:- DefaultRuntimeEnvironment
- Specified by:
newClasspathKmoduleDefaultBuilder
in interfaceRuntimeEnvironmentBuilderFactory
- Parameters:
kbaseName
- name of the kbase defined in kmodule.xmlksessionName
- name of the ksession define in kmodule.xml- Returns:
- new instance of
RuntimeEnvironmentBuilder
that is already preconfigured with defaults see DefaultRuntimeEnvironment
-
-