Class BuildPipelineInvoker.LocalBuildRequest

  • Enclosing class:
    BuildPipelineInvoker

    public static class BuildPipelineInvoker.LocalBuildRequest
    extends Object
    This class models the configuration parameters for a module build execution.
    • 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.
      • 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()
      • isSuppressHandlers

        public boolean isSuppressHandlers()
      • isSingleResource

        public boolean isSingleResource()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object