Package org.kie.api.builder.helper
Class FluentKieModuleDeploymentHelper
- java.lang.Object
-
- org.kie.api.builder.helper.KieModuleDeploymentHelper
-
- org.kie.api.builder.helper.FluentKieModuleDeploymentHelper
-
public abstract class FluentKieModuleDeploymentHelper extends KieModuleDeploymentHelper
A fluent interface to theKieModuleDeploymentHelperfunctionality. See theKieModuleDeploymentHelperfor more info.
-
-
Constructor Summary
Constructors Constructor Description FluentKieModuleDeploymentHelper()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract FluentKieModuleDeploymentHelperaddClass(Class<?>... classForKjar)Add 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 org.kie.api.builder.KieModulecreateKieJar()Create the Kjarabstract voidcreateKieJarAndDeployToMaven()Create the Kjar and deploy (install) it to the local maven repository.abstract org.kie.api.builder.model.KieModuleModelgetKieModuleModel()Get theKieModuleModel.abstract FluentKieModuleDeploymentHelperresetHelper()Reset 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 Kjar-
Methods inherited from class org.kie.api.builder.helper.KieModuleDeploymentHelper
newFluentInstance, newSingleInstance
-
-
-
-
Method Detail
-
setGroupId
public abstract FluentKieModuleDeploymentHelper setGroupId(String groupId)
Set the group id of the Kjar- Parameters:
groupId- The group id- Returns:
- The helper instance
-
setArtifactId
public abstract FluentKieModuleDeploymentHelper setArtifactId(String artifactId)
Set the artifact id of the Kjar- Parameters:
artifactId- The artifact id- Returns:
- The helper instance
-
setVersion
public abstract FluentKieModuleDeploymentHelper setVersion(String version)
Set the (pom) version of the Kjar- Parameters:
version- The version- Returns:
- The helper instance
-
setKBaseName
public abstract FluentKieModuleDeploymentHelper setKBaseName(String kbaseName)
- Parameters:
kbaseName- TheKieBasename- Returns:
- The helper instance
-
setKieSessionname
public abstract FluentKieModuleDeploymentHelper setKieSessionname(String ksessionName)
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
public abstract FluentKieModuleDeploymentHelper addResourceFilePath(String... resourceFilePath)
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
public abstract FluentKieModuleDeploymentHelper setClasses(List<Class<?>> classesForKjar)
Set the list of classes to be added to the Kjar.- Parameters:
classesForKjar- The list of classes- Returns:
- The helper instance
-
addClass
public abstract FluentKieModuleDeploymentHelper addClass(Class<?>... classForKjar)
Add a class that should be included in the Kjar.- Parameters:
classForKjar- The class- Returns:
- The helper instance
-
setDependencies
public abstract FluentKieModuleDeploymentHelper setDependencies(List<String> dependencies)
Set the list of dependencies that the Kjar should use.- Parameters:
dependencies- The list of dependencies- Returns:
- The helper instance
-
addDependencies
public abstract FluentKieModuleDeploymentHelper addDependencies(String... dependency)
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
public abstract org.kie.api.builder.model.KieModuleModel getKieModuleModel()
Get theKieModuleModel. Use theKieModuleModelinstance to add moreKieBaseorKieSessioninstances as well as add or change the default configuration of theKieSession's.- Returns:
- The
KieModuleModelinstance
-
resetHelper
public abstract FluentKieModuleDeploymentHelper 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
public abstract org.kie.api.builder.KieModule 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.
-
-