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.

Author:
Robert Reiner

Field Summary
 
Fields inherited from class de.smartics.exceptions.context.AbstractExceptionContext
idFactory, throwableHandleMode
 
Constructor Summary
protected AbstractI18nExceptionContext(Configuration configuration)
          Constructor.
 
Method Summary
 BundleProvider getBundleProvider()
          Returns the bundle provider that helps to access resource bundles.
 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(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 BundleProvider getBundleProvider()
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.
See Also:
I18nExceptionContext.getBundleProvider()

getMessageComposer

public MessageComposer getMessageComposer()
Returns the implementation to use for the message composer.

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

getMessageTemplateId

public MessageTemplate getMessageTemplateId()
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-null Kronseder & Reiner GmbH - smartics. All Rights Reserved.