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

Package class diagram package JndiContextMessageBean
java.lang.Object
  extended by de.smartics.exceptions.i18n.AbstractMessageBean
      extended by de.smartics.properties.api.core.app.AbstractBaseMessageBean
          extended by de.smartics.properties.impl.config.jndi.JndiContextMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable

public class JndiContextMessageBean
     
     
extends de.smartics.properties.api.core.app.AbstractBaseMessageBean

Provides context information for problems dealing with JNDI context access.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Constructor Summary
JndiContextMessageBean(ConfigurationsCode code, String sourceId, String configurationKey)
          Constructor without cause.
JndiContextMessageBean(ConfigurationsCode code, Throwable cause, String sourceId, String configurationKey)
          Default constructor.
 
Method Summary
static JndiContextMessageBean invalidKey(Throwable cause, String sourceId, String configurationKey)
          Creates a message bean for JndiPropertyStoreCode.INVALID_CONFIGURATION_KEY.
 
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

JndiContextMessageBean

public JndiContextMessageBean(ConfigurationsCode code,
                              String sourceId,
                              String configurationKey)
Constructor without cause.

Parameters:
code - the error or exception code of the exception.
sourceId - the identifier of the JNDI context in trouble.
configurationKey - the key to the configuration where problems arise accessing the property store.

JndiContextMessageBean

public JndiContextMessageBean(ConfigurationsCode code,
                              Throwable cause,
                              String sourceId,
                              String configurationKey)
Default constructor.

Parameters:
code - the error or exception code of the exception.
cause - the cause to the problem.
sourceId - the identifier of the JNDI context in trouble.
configurationKey - the key to the configuration where problems arise accessing the property store.
Method Detail

invalidKey

public static JndiContextMessageBean invalidKey(Throwable cause,
                                                String sourceId,
                                                String configurationKey)
Creates a message bean for JndiPropertyStoreCode.INVALID_CONFIGURATION_KEY.

Parameters:
cause - the cause to the problem.
sourceId - the identifier of the JNDI context in trouble.
configurationKey - the key to the configuration where problems arise accessing the property store.
Returns:
the message bean.


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