|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.runtime.AbstractExceptionContextManager<ExceptionContext> de.smartics.exceptions.runtime.ExceptionContextManager
public final class ExceptionContextManager
Provides configuration information for exceptions per class loader.
Field Summary | |
---|---|
static ExceptionContext |
DEFAULT_EXCEPTION_CONTEXT The default context if none is provided for a given class loader. |
Constructor Summary | |
---|---|
ExceptionContextManager() |
Method Summary | |
---|---|
protected ExceptionContext |
fetchContextFromService(ClassLoader classLoader) Returns the context configured by the service framework. |
protected ExceptionContext |
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 ExceptionContextManager |
getInstance() Returns the reference to the singleton. |
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 |
Field Detail |
---|
public static final ExceptionContext DEFAULT_EXCEPTION_CONTEXT
Constructor Detail |
---|
public ExceptionContextManager()
Method Detail |
---|
public static ExceptionContextManager getInstance()
protected ExceptionContext fetchContextFromService(ClassLoader classLoader)
fetchContextFromService
in class
AbstractExceptionContextManager<ExceptionContext>
classLoader
- the class loader to use.
AbstractExceptionContextManager.fetchContextFromService(java.lang.ClassLoader)
protected ExceptionContext getDefaultExceptionContext()
getDefaultExceptionContext
in class
AbstractExceptionContextManager<ExceptionContext>
AbstractExceptionContextManager.getDefaultExceptionContext()
public static IdFactory getFactory(ClassLoader classLoader)
classLoader
- the class loader whose ID factory is requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |