package saker.build.runtime.params
Builder class for ExecutionRepositoryConfiguration.
The builder is single use, it cannot be reused after callig build().
public Builder | add( Adds a repository for the configuration with the given classpath location and enumerator. |
public Builder | add( Adds a repository for the configuration with the given attributes. |
public Builder | add( Add a repository configuration to the builder. |
public ExecutionRepositoryConfiguration | build() Builds the ExecutionRepositoryConfiguration. |
public Builder add(ClassPathLocation location, ClassPathServiceEnumerator<? extends SakerRepositoryFactory> enumerator ) throws IllegalStateException
Adds a repository for the configuration with the given classpath location and enumerator.
locationThe classpath to load the repository from.
enumeratorThe service enumerator to use when instantiating the repository.
this
IllegalStateExceptionIf the builder was already consumed.
public Builder add(ClassPathLocation location, ClassPathServiceEnumerator<? extends SakerRepositoryFactory> enumerator, String repositoryidentifier) throws IllegalStateException
Adds a repository for the configuration with the given attributes.
locationThe classpath to load the repository from.
enumeratorThe service enumerator to use when instantiating the repository.
repositoryidentifierThe identifier for the repository to use during execution. May be
null
.this
IllegalStateExceptionIf the builder was already consumed.
Add a repository configuration to the builder.
repoconfigThe repository configuration.
this
IllegalStateExceptionIf the builder was already consumed.
public ExecutionRepositoryConfiguration build() throws InvalidBuildConfigurationException, IllegalStateException
Builds the ExecutionRepositoryConfiguration.
The builder is no longer useable if this call succeeds.
The constructed repository configuration.
InvalidBuildConfigurationExceptionIf multiple repositories were defined for the same identifier.
IllegalStateExceptionIf the builder was already consumed.