de.smartics.properties.impl.config.jndi
Class JndiPropertyStoreMessageBean

Package class diagram package JndiPropertyStoreMessageBean
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
              extended by de.smartics.properties.impl.config.jndi.JndiPropertyStoreMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable

public class JndiPropertyStoreMessageBean
     
     
extends PropertyStoreMessageBean

Provides context information for problems dealing with JNDI property stores.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Constructor Summary
JndiPropertyStoreMessageBean(JndiPropertyStoreCode code, ConfigurationKey<?> configurationKey, String propertyName)
          Constructor without cause.
JndiPropertyStoreMessageBean(JndiPropertyStoreCode code, Throwable cause, ConfigurationKey<?> configurationKey, String propertyName)
          Default constructor.
 
Method Summary
static PropertyStoreMessageBean collection(Throwable cause, ConfigurationKey<?> configurationKey)
          Creates a message bean for JndiPropertyStoreCode.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

JndiPropertyStoreMessageBean

public JndiPropertyStoreMessageBean(JndiPropertyStoreCode 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.

JndiPropertyStoreMessageBean

public JndiPropertyStoreMessageBean(JndiPropertyStoreCode 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 JndiPropertyStoreCode.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.