de.smartics.exceptions.context
Class ConfiguredExceptionContext

Package class diagram package ConfiguredExceptionContext
java.lang.Object
  extended by de.smartics.exceptions.context.AbstractExceptionContext
      extended by de.smartics.exceptions.context.ConfiguredExceptionContext
All Implemented Interfaces:
ExceptionContext

public class ConfiguredExceptionContext
     
     
extends AbstractExceptionContext

The exception context is configured via commons-configuration. To use this exception context implementation provide a file named as defined by the constant CONFIGURATION_FILE in the class path.


Field Summary
static String CONFIGURATION_FILE
          The name of the configuration file the context will read from the class path.
 
Fields inherited from class de.smartics.exceptions.context.AbstractExceptionContext
formatter, idFactory, throwableHandleMode
 
Constructor Summary
ConfiguredExceptionContext()
          Default constructor.
 
Method Summary
 
Methods inherited from class de.smartics.exceptions.context.AbstractExceptionContext
getCodeMessageFormatter, getIdFactory, getThrowableHandleMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_FILE

public static final String CONFIGURATION_FILE
The name of the configuration file the context will read from the class path.

The value of this constant is "exception-context-config.xml".

Constant Field Value:
"exception-context-config.xml"
Constructor Detail

ConfiguredExceptionContext

public ConfiguredExceptionContext()
                           throws org.apache.commons.configuration.ConfigurationException
Default constructor. No parameter allowed since the instance is constructed via the Service API.

Throws:
org.apache.commons.configuration.ConfigurationException - if the configuration file cannot be read and therefore the exception context cannot be created.


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