Class BuildPipelineInvoker.LocalBuildRequest
- java.lang.Object
-
- org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker.LocalBuildRequest
-
- Enclosing class:
- BuildPipelineInvoker
public static class BuildPipelineInvoker.LocalBuildRequest extends Object
This class models the configuration parameters for a module build execution.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LocalBuildConfig.BuildTypegetBuildType()LocalBuildConfig.DeploymentTypegetDeploymentType()org.guvnor.common.services.project.model.ModulegetModule()org.uberfire.backend.vfs.PathgetResource()Map<org.uberfire.backend.vfs.Path,Collection<org.uberfire.workbench.events.ResourceChange>>getResourceChanges()inthashCode()booleanisSingleResource()booleanisSuppressHandlers()static BuildPipelineInvoker.LocalBuildRequestnewFullBuildAndDeployRequest(org.guvnor.common.services.project.model.Module module, LocalBuildConfig.DeploymentType deploymentType, boolean suppressHandlers)Creates a full build request for the given module, and additionally performs the deployment for the build in current m2repository.static BuildPipelineInvoker.LocalBuildRequestnewFullBuildRequest(org.guvnor.common.services.project.model.Module module)Creates a full build request for the given module.static BuildPipelineInvoker.LocalBuildRequestnewIncrementalBuildRequest(org.guvnor.common.services.project.model.Module module, Map<org.uberfire.backend.vfs.Path,Collection<org.uberfire.workbench.events.ResourceChange>> resourceChanges)Creates an incremental build request for the given module.static BuildPipelineInvoker.LocalBuildRequestnewIncrementalBuildRequest(org.guvnor.common.services.project.model.Module module, LocalBuildConfig.BuildType buildType, org.uberfire.backend.vfs.Path resource)Creates an incremental build request for the given module.
-
-
-
Method Detail
-
newFullBuildRequest
public static final BuildPipelineInvoker.LocalBuildRequest newFullBuildRequest(org.guvnor.common.services.project.model.Module module)
Creates a full build request for the given module.- Parameters:
module- the module to build.- Returns:
- a properly constructed build request.
-
newFullBuildAndDeployRequest
public static final BuildPipelineInvoker.LocalBuildRequest newFullBuildAndDeployRequest(org.guvnor.common.services.project.model.Module module, LocalBuildConfig.DeploymentType deploymentType, boolean suppressHandlers)
Creates a full build request for the given module, and additionally performs the deployment for the build in current m2repository.- Parameters:
module- the module to build.deploymentType- the type of deployment to perform.suppressHandlers- true if PostBuildHandlers invocation should be canceled, false in any other case.- Returns:
- a properly constructed build request.
-
newIncrementalBuildRequest
public static final BuildPipelineInvoker.LocalBuildRequest newIncrementalBuildRequest(org.guvnor.common.services.project.model.Module module, LocalBuildConfig.BuildType buildType, org.uberfire.backend.vfs.Path resource)
Creates an incremental build request for the given module.- Parameters:
module- the module to build incrementally.buildType- the incremental build type to perform.resource- the resource that was added, updated or deleted.- Returns:
- a properly constructed build request.
-
newIncrementalBuildRequest
public static final BuildPipelineInvoker.LocalBuildRequest newIncrementalBuildRequest(org.guvnor.common.services.project.model.Module module, Map<org.uberfire.backend.vfs.Path,Collection<org.uberfire.workbench.events.ResourceChange>> resourceChanges)
Creates an incremental build request for the given module.- Parameters:
module- the module to build incrementally.resourceChanges- the set of changes. This incremental build type supports changes for multiple resources.- Returns:
- a properly constructed build request.
-
getBuildType
public LocalBuildConfig.BuildType getBuildType()
-
getModule
public org.guvnor.common.services.project.model.Module getModule()
-
getResource
public org.uberfire.backend.vfs.Path getResource()
-
getResourceChanges
public Map<org.uberfire.backend.vfs.Path,Collection<org.uberfire.workbench.events.ResourceChange>> getResourceChanges()
-
getDeploymentType
public LocalBuildConfig.DeploymentType getDeploymentType()
-
isSuppressHandlers
public boolean isSuppressHandlers()
-
isSingleResource
public boolean isSingleResource()
-
-