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 java.lang.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(java.lang.String kbaseName, java.lang.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(java.lang.String groupId, java.lang.String artifactId, java.lang.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(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String kbaseName, java.lang.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, java.lang.String kbaseName, java.lang.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(java.lang.String groupId, java.lang.String artifactId, java.lang.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(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String kbaseName, java.lang.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, java.lang.String kbaseName, java.lang.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(java.lang.String kbaseName, java.lang.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
-
-