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

Package class diagram package PropertyStoreMessageBean
java.lang.Object
  extended by de.smartics.exceptions.i18n.AbstractMessageBean
      extended by de.smartics.properties.api.core.app.AbstractBaseMessageBean
          extended by de.smartics.properties.api.config.domain.PropertyStoreMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable
Direct Known Subclasses:
JndiPropertyStoreMessageBean

public class PropertyStoreMessageBean
     
     
extends AbstractBaseMessageBean

Provides context information for problems dealing with property stores.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Constructor Summary
PropertyStoreMessageBean(ConfigurationsCode code, ConfigurationKey<?> configurationKey, String propertyName)
          Constructor without cause.
PropertyStoreMessageBean(ConfigurationsCode code, Throwable cause, ConfigurationKey<?> configurationKey, String propertyName)
          Default constructor.
 
Method Summary
static PropertyStoreMessageBean collection(Throwable cause, ConfigurationKey<?> configurationKey)
          Creates a message bean for PropertyStoreCode.CANNOT_GET_PROPERTY_COLLECTION.
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
getCause, getCauseTrail, getCauseTrail, getClassLoader, getCode, getLocalizedInfo, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyStoreMessageBean

public PropertyStoreMessageBean(ConfigurationsCode code,
                                ConfigurationKey<?> configurationKey,
                                String propertyName)
Constructor without cause.

Parameters:
code - the error or exception code of the exception.
configurationKey - the key to the configuration where problems arise accessing the property store.
propertyName - the name of the property that cannot be accessed in the store.

PropertyStoreMessageBean

public PropertyStoreMessageBean(ConfigurationsCode code,
                                Throwable cause,
                                ConfigurationKey<?> configurationKey,
                                String propertyName)
Default constructor.

Parameters:
code - the error or exception code of the exception.
cause - the cause to the problem.
configurationKey - the key to the configuration where problems arise accessing the property store.
propertyName - the name of the property that cannot be accessed in the store.
Method Detail

collection

public static PropertyStoreMessageBean collection(Throwable cause,
                                                  ConfigurationKey<?> configurationKey)
Creates a message bean for PropertyStoreCode.CANNOT_GET_PROPERTY_COLLECTION.

Parameters:
cause - the cause to the problem.
configurationKey - the key to the configuration where problems arise accessing the property store.
Returns:
the requested message instance.


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