|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.runtime.AbstractExceptionContextManager<I18nExceptionContext> de.smartics.exceptions.i18n.I18nExceptionContextManager
public final class I18nExceptionContextManager
Provides configuration information for exceptions per class loader.
Constructor Summary | |
---|---|
I18nExceptionContextManager() |
Method Summary | |
---|---|
protected I18nExceptionContext |
fetchContextFromService(ClassLoader classLoader) Returns the context configured by the service framework. |
static de.smartics.messages.core.BundleProvider |
getBundleProvider(ClassLoader classLoader) Convenience method to access the bundle provider for the given class loader. |
protected I18nExceptionContext |
getDefaultExceptionContext() Returns the default context provided by the subclass. |
static IdFactory |
getFactory(ClassLoader classLoader) Convenience method to access the ID factory for the given class loader. |
static I18nExceptionContextManager |
getInstance() Returns the reference to the singleton. |
static MessageComposer |
getMessageComposer(ClassLoader classLoader) Convenience method to access the message composer for the given class loader. |
Methods inherited from class de.smartics.exceptions.runtime.AbstractExceptionContextManager |
---|
fetchContext, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public I18nExceptionContextManager()
Method Detail |
---|
public static I18nExceptionContextManager getInstance()
protected I18nExceptionContext fetchContextFromService(ClassLoader classLoader)
fetchContextFromService
in class
AbstractExceptionContextManager<I18nExceptionContext>
classLoader
- the class loader to use.
AbstractExceptionContextManager.fetchContextFromService(java.lang.ClassLoader)
protected I18nExceptionContext getDefaultExceptionContext()
Returns the default exception context.
new DefaultI18nExceptionContext( new UuidFactory(), new ClassPathBundleProvider(), new DefaultMessageComposer());
getDefaultExceptionContext
in class
AbstractExceptionContextManager<I18nExceptionContext>
public static IdFactory getFactory(ClassLoader classLoader)
classLoader
- the class loader whose ID factory is requested.
public static de.smartics.messages.core.BundleProvider getBundleProvider(ClassLoader classLoader)
classLoader
- the class loader whose bundle provider is requested.
public static MessageComposer getMessageComposer(ClassLoader classLoader)
classLoader
- the class loader whose message composer is requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |