de.smartics.properties.impl.config.domain.key.envapp
Class EnvAppConfigurationKeyBuilder

Package class diagram package EnvAppConfigurationKeyBuilder
java.lang.Object
  extended by de.smartics.properties.impl.config.domain.key.envapp.EnvAppConfigurationKeyBuilder

public final class EnvAppConfigurationKeyBuilder
     
     
extends Object

Helper to create instances of TenentUserConfigurationKey.


Constructor Summary
EnvAppConfigurationKeyBuilder()
           
 
Method Summary
 ConfigurationKey<?> build()
          Creates an ConfigurationKey instance.
 EnvAppConfigurationKeyBuilder withArtifactId(String artifactId)
          Sets the name of the application.
 EnvAppConfigurationKeyBuilder withEnvironmentName(String name)
          Sets the name of the environment.
 EnvAppConfigurationKeyBuilder withGroupId(String groupId)
          Sets the group the application belongs to.
 EnvAppConfigurationKeyBuilder withNode(String node)
          Sets the optional identifier of the node within the given environment.
 EnvAppConfigurationKeyBuilder withVersion(String version)
          Sets the version of the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvAppConfigurationKeyBuilder

public EnvAppConfigurationKeyBuilder()
Method Detail

withEnvironmentName

public EnvAppConfigurationKeyBuilder withEnvironmentName(String name)
Sets the name of the environment.

Parameters:
name - the name of the environment.
Returns:
a reference to the builder.

withNode

public EnvAppConfigurationKeyBuilder withNode(String node)
Sets the optional identifier of the node within the given environment.

Parameters:
node - the optional identifier of the node within the given environment.
Returns:
a reference to the builder.

withGroupId

public EnvAppConfigurationKeyBuilder withGroupId(String groupId)
Sets the group the application belongs to.

Parameters:
groupId - the group the application belongs to.
Returns:
a reference to this builder.

withArtifactId

public EnvAppConfigurationKeyBuilder withArtifactId(String artifactId)
Sets the name of the application.

Parameters:
artifactId - the name of the application.
Returns:
a reference to this builder.

withVersion

public EnvAppConfigurationKeyBuilder withVersion(String version)
Sets the version of the application.

Parameters:
version - the version of the application.
Returns:
a reference to this builder.

build

public ConfigurationKey<?> build()
                          throws de.smartics.util.lang.BlankArgumentException
Creates an ConfigurationKey instance.

Returns:
an ConfigurationKey instance.
Throws:
de.smartics.util.lang.BlankArgumentException - if the name of the environment, the groupId or artifactId of the application is blank.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.