saker.build Documentation TaskDoc JavaDoc Packages
public static final class ExecutionRepositoryConfiguration.Builder
Builder class for ExecutionRepositoryConfiguration.

The builder is single use, it cannot be reused after callig build().

Methods
public Builder
Adds a repository for the configuration with the given classpath location and enumerator.
public Builder
add(ClassPathLocation location, ClassPathServiceEnumerator<extends SakerRepositoryFactory> enumerator, String repositoryidentifier)
Adds a repository for the configuration with the given attributes.
public Builder
add(RepositoryConfig repoconfig)
Add a repository configuration to the builder.
public ExecutionRepositoryConfiguration
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.
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.