Package org.kie.api.builder.helper
Class FluentKieModuleDeploymentHelper
java.lang.Object
org.kie.api.builder.helper.KieModuleDeploymentHelper
org.kie.api.builder.helper.FluentKieModuleDeploymentHelper
A fluent interface to the
KieModuleDeploymentHelper functionality. See
the KieModuleDeploymentHelper for more info.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FluentKieModuleDeploymentHelperAdd a class that should be included in the Kjar.abstract FluentKieModuleDeploymentHelperaddDependencies(String... dependency) Add one or more dependencies (specified by a "G:A:V" string) that the Kjar should use.abstract FluentKieModuleDeploymentHelperaddResourceFilePath(String... resourceFilePath) Add a path containing one or more resources.abstract KieModuleCreate the Kjarabstract voidCreate the Kjar and deploy (install) it to the local maven repository.abstract KieModuleModelGet theKieModuleModel.abstract FluentKieModuleDeploymentHelperReset the helper.abstract FluentKieModuleDeploymentHelpersetArtifactId(String artifactId) Set the artifact id of the Kjarabstract FluentKieModuleDeploymentHelpersetClasses(List<Class<?>> classesForKjar) Set the list of classes to be added to the Kjar.abstract FluentKieModuleDeploymentHelpersetDependencies(List<String> dependencies) Set the list of dependencies that the Kjar should use.abstract FluentKieModuleDeploymentHelpersetGroupId(String groupId) Set the group id of the Kjarabstract FluentKieModuleDeploymentHelpersetKBaseName(String kbaseName) Set aKieBasename.abstract FluentKieModuleDeploymentHelpersetKieSessionname(String ksessionName) Set theKieSessionname.abstract FluentKieModuleDeploymentHelpersetResourceFilePaths(List<String> resourceFilePaths) Set the list of paths containing resources.abstract FluentKieModuleDeploymentHelpersetVersion(String version) Set the (pom) version of the KjarMethods inherited from class org.kie.api.builder.helper.KieModuleDeploymentHelper
newFluentInstance, newSingleInstance
-
Constructor Details
-
FluentKieModuleDeploymentHelper
public FluentKieModuleDeploymentHelper()
-
-
Method Details
-
setGroupId
Set the group id of the Kjar- Parameters:
groupId- The group id- Returns:
- The helper instance
-
setArtifactId
Set the artifact id of the Kjar- Parameters:
artifactId- The artifact id- Returns:
- The helper instance
-
setVersion
Set the (pom) version of the Kjar- Parameters:
version- The version- Returns:
- The helper instance
-
setKBaseName
- Parameters:
kbaseName- TheKieBasename- Returns:
- The helper instance
-
setKieSessionname
Set theKieSessionname. If you want to add multipleKieSession's, use thegetKieModuleModel()method.- Parameters:
ksessionName- TheKieSessionname- Returns:
- The helper instance
-
setResourceFilePaths
public abstract FluentKieModuleDeploymentHelper setResourceFilePaths(List<String> resourceFilePaths) Set the list of paths containing resources. If the path refers to a directory, all files in that directory will be added as resource files.- Parameters:
resourceFilePaths- The list of resource file paths- Returns:
- The helper instance
-
addResourceFilePath
Add a path containing one or more resources. If the path is a directory, all files in the directory will be added as resource files.- Parameters:
resourceFilePath- The resource file path- Returns:
- The helper instance
-
setClasses
Set the list of classes to be added to the Kjar.- Parameters:
classesForKjar- The list of classes- Returns:
- The helper instance
-
addClass
Add a class that should be included in the Kjar.- Parameters:
classForKjar- The class- Returns:
- The helper instance
-
setDependencies
Set the list of dependencies that the Kjar should use.- Parameters:
dependencies- The list of dependencies- Returns:
- The helper instance
-
addDependencies
Add one or more dependencies (specified by a "G:A:V" string) that the Kjar should use.- Parameters:
dependency- One or more strings specifying a dependency- Returns:
- The helper instance
-
getKieModuleModel
Get theKieModuleModel. Use theKieModuleModelinstance to add moreKieBaseorKieSessioninstances as well as add or change the default configuration of theKieSession's.- Returns:
- The
KieModuleModelinstance
-
resetHelper
Reset the helper. This clears ALL configuration that has been done up to this point on the helper instance.- Returns:
- The helper instance
-
createKieJar
Create the Kjar- Returns:
- The
KieModulethat represents the Kjar
-
createKieJarAndDeployToMaven
public abstract void createKieJarAndDeployToMaven()Create the Kjar and deploy (install) it to the local maven repository.
-