de.smartics.exceptions.context
Class PropertiesConfiguredExceptionContext

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

public class PropertiesConfiguredExceptionContext
     
     
extends AbstractExceptionContext

The exception context is configured via a single properties file.

Author:
Robert Reiner

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
idFactory, throwableHandleMode
 
Constructor Summary
PropertiesConfiguredExceptionContext()
          Default constructor.
 
Method Summary
 
Methods inherited from class de.smartics.exceptions.context.AbstractExceptionContext
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.properties".

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

PropertiesConfiguredExceptionContext

public PropertiesConfiguredExceptionContext()
                                     throws ConfigurationException,
                                            FileNotFoundException,
                                            IOException
Default constructor. No parameter allowed since the instance is constructed via the Service API.

Throws:
ConfigurationException - if the configuration file cannot be read and therefore the exception context cannot be created.
FileNotFoundException - if the properties file cannot be found.
IOException - if the properties file cannot be read.


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