org.jfrog.build.api.builder
Class ModuleBuilder

java.lang.Object
  extended by org.jfrog.build.api.builder.ModuleBuilder

public class ModuleBuilder
extends java.lang.Object

A builder for the module class


Constructor Summary
ModuleBuilder()
           
 
Method Summary
 ModuleBuilder addArtifact(Artifact artifact)
          Adds the given artifact to the artifacts list
 ModuleBuilder addDependency(Dependency dependency)
          Adds the given dependency to the dependencies list
 ModuleBuilder addExcludedArtifact(Artifact artifact)
          Adds the given artifact to the exclude artifacts list
 ModuleBuilder addProperty(java.lang.Object key, java.lang.Object value)
          Adds the given property to the properties object
 ModuleBuilder artifacts(java.util.List<Artifact> artifacts)
          Sets the list of artifacts that have been deployed by the module
 Module build()
          Assembles the module class
 ModuleBuilder dependencies(java.util.List<Dependency> dependencies)
          Sets the dependencies of the module
 ModuleBuilder excludedArtifacts(java.util.List<Artifact> excludedArtifacts)
          Sets the list of artifacts that have been excluded by the module
 ModuleBuilder id(java.lang.String id)
          Sets the ID of the module
 ModuleBuilder properties(java.util.Properties properties)
          Sets the properties of the module
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleBuilder

public ModuleBuilder()
Method Detail

build

public Module build()
Assembles the module class

Returns:
Assembled module

id

public ModuleBuilder id(java.lang.String id)
Sets the ID of the module

Parameters:
id - Module ID
Returns:
Builder instance

artifacts

public ModuleBuilder artifacts(java.util.List<Artifact> artifacts)
Sets the list of artifacts that have been deployed by the module

Parameters:
artifacts - Module deployed artifacts
Returns:
Builder instance

excludedArtifacts

public ModuleBuilder excludedArtifacts(java.util.List<Artifact> excludedArtifacts)
Sets the list of artifacts that have been excluded by the module

Parameters:
excludedArtifacts - Module excluded artifacts
Returns:
Builder instance

addArtifact

public ModuleBuilder addArtifact(Artifact artifact)
Adds the given artifact to the artifacts list

Parameters:
artifact - Artifact to add
Returns:
Builder instance

addExcludedArtifact

public ModuleBuilder addExcludedArtifact(Artifact artifact)
Adds the given artifact to the exclude artifacts list

Parameters:
artifact - Artifact to add
Returns:
Builder instance

dependencies

public ModuleBuilder dependencies(java.util.List<Dependency> dependencies)
Sets the dependencies of the module

Parameters:
dependencies - Module dependencies
Returns:
Builder instance

addDependency

public ModuleBuilder addDependency(Dependency dependency)
Adds the given dependency to the dependencies list

Parameters:
dependency - Dependency to add
Returns:
Builder instance

properties

public ModuleBuilder properties(java.util.Properties properties)
Sets the properties of the module

Parameters:
properties - Module properties
Returns:
Builder instance

addProperty

public ModuleBuilder addProperty(java.lang.Object key,
                                 java.lang.Object value)
Adds the given property to the properties object

Parameters:
key - Key of property to add
value - Value of property to add
Returns:
Builder instance