de.smartics.exceptions.i18n.context
Class AbstractI18nExceptionContext
java.lang.Object
de.smartics.exceptions.context.AbstractExceptionContext
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
getBundleProvider
public de.smartics.messages.core.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-$2011
Kronseder & Reiner GmbH - smartics. All Rights Reserved.