de.smartics.exceptions.i18n.context
Class AbstractI18nExceptionContext

Package class diagram package AbstractI18nExceptionContext
java.lang.Object
  extended by de.smartics.exceptions.context.AbstractExceptionContext
      extended by de.smartics.exceptions.i18n.context.AbstractI18nExceptionContext
All Implemented Interfaces:
ExceptionContext, I18nExceptionContext
Direct Known Subclasses:
SystemDefaultI18nExceptionContext

public abstract class AbstractI18nExceptionContext
     
     
extends AbstractExceptionContext
implements I18nExceptionContext

Provides exception relevant information for an exception context. There is one context for each class loader that is stored by the I18nExceptionContextManager.


Field Summary
 
Fields inherited from class de.smartics.exceptions.context.AbstractExceptionContext
formatter, idFactory, throwableHandleMode
 
Constructor Summary
protected AbstractI18nExceptionContext(org.apache.commons.configuration.Configuration configuration)
          Constructor.
 
Method Summary
 de.smartics.messages.core.BundleProvider getBundleProvider()
          Returns the bundle provider that helps to access resource bundles.
 I18nCodeMessageFormatter getCodeMessageFormatter()
          Returns the formatter for code messages.
 MessageComposer getMessageComposer()
          Returns the implementation to use for the message composer.
 MessageTemplate getMessageTemplateId()
          Returns the identifier of a template to be used for rendering the exception information.
 
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
 
Methods inherited from interface de.smartics.exceptions.core.ExceptionContext
getIdFactory, getThrowableHandleMode
 

Constructor Detail

AbstractI18nExceptionContext

protected AbstractI18nExceptionContext(org.apache.commons.configuration.Configuration configuration)
                                throws IllegalArgumentException
Constructor.

Parameters:
configuration - the parameters to configure this context.
Throws:
IllegalArgumentException - if any configuration parameter value is illegal.
See Also:
AbstractExceptionContext.AbstractExceptionContext(org.apache.commons.configuration.Configuration)
Method Detail

getBundleProvider

public de.smartics.messages.core.BundleProvider getBundleProvider()
Description copied from interface: I18nExceptionContext
Returns the bundle provider that helps to access resource bundles.

Specified by:
getBundleProvider in interface I18nExceptionContext
Returns:
the bundle provider that helps to access resource bundles.

getMessageComposer

public MessageComposer getMessageComposer()
Description copied from interface: I18nExceptionContext
Returns the implementation to use for the message composer.

Specified by:
getMessageComposer in interface I18nExceptionContext
Returns:
the implementation to use for the message composer.

getCodeMessageFormatter

public I18nCodeMessageFormatter getCodeMessageFormatter()
Description copied from interface: ExceptionContext
Returns the formatter for code messages. Override to control the representation of exception and message bean instances.

Specified by:
getCodeMessageFormatter in interface ExceptionContext
Specified by:
getCodeMessageFormatter in interface I18nExceptionContext
Overrides:
getCodeMessageFormatter in class AbstractExceptionContext
Returns:
the formatter for code messages.

getMessageTemplateId

public MessageTemplate getMessageTemplateId()
Description copied from interface: I18nExceptionContext
Returns the identifier of a template to be used for rendering the exception information.

Specified by:
getMessageTemplateId in interface I18nExceptionContext
Returns:
the template identifier.


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