de.smartics.properties.api.config.domain
Class DuplicateConfigurationException

Package class diagram package DuplicateConfigurationException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.properties.api.core.app.PropertyRootException
                  extended by de.smartics.properties.api.config.domain.ConfigurationException
                      extended by de.smartics.properties.api.config.domain.DuplicateConfigurationException
All Implemented Interfaces:
Serializable

public final class DuplicateConfigurationException
     
     
extends ConfigurationException

Signals that a configuration with the given key has already been registered.

See Also:
Serialized Form

Constructor Summary
DuplicateConfigurationException(ConfigurationKey key, ConfigurationPropertiesManagement currentConfigurationProperties, ConfigurationPropertiesManagement duplicateConfigurationProperties)
          Convenience constructor without root cause.
DuplicateConfigurationException(Throwable cause, ConfigurationKey key, ConfigurationPropertiesManagement currentConfigurationProperties, ConfigurationPropertiesManagement duplicateConfigurationProperties)
          Default Constructor.
 
Method Summary
 ConfigurationPropertiesManagement getCurrentConfigurationProperties()
          Returns the configuration that has been registered and is currently active.
 ConfigurationPropertiesManagement getDuplicateConfigurationProperties()
          Returns the configuration that is a duplication of the current configuration and has been rejected from being registered with the given key.
 
Methods inherited from class de.smartics.properties.api.config.domain.ConfigurationException
getKey
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateConfigurationException

public DuplicateConfigurationException(ConfigurationKey key,
                                       ConfigurationPropertiesManagement currentConfigurationProperties,
                                       ConfigurationPropertiesManagement duplicateConfigurationProperties)
Convenience constructor without root cause.

Parameters:
key - the key to the configuration that signaled problems.
currentConfigurationProperties - the configuration that has been registered and is currently active.
duplicateConfigurationProperties - the configuration that is a duplication of the current configuration and has been rejected from being registered with the given key.

DuplicateConfigurationException

public DuplicateConfigurationException(Throwable cause,
                                       ConfigurationKey key,
                                       ConfigurationPropertiesManagement currentConfigurationProperties,
                                       ConfigurationPropertiesManagement duplicateConfigurationProperties)
Default Constructor.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
key - the key to the configuration that signaled problems.
currentConfigurationProperties - the configuration that has been registered and is currently active.
duplicateConfigurationProperties - the configuration that is a duplication of the current configuration and has been rejected from being registered with the given key.
Method Detail

getCurrentConfigurationProperties

public ConfigurationPropertiesManagement getCurrentConfigurationProperties()
Returns the configuration that has been registered and is currently active.

Returns:
the configuration that has been registered and is currently active.

getDuplicateConfigurationProperties

public ConfigurationPropertiesManagement getDuplicateConfigurationProperties()
Returns the configuration that is a duplication of the current configuration and has been rejected from being registered with the given key.

Returns:
the configuration that is a duplication of the current configuration and has been rejected from being registered with the given key.


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