|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.runtime.AbstractExceptionContextManager<T>
T
- the type of the context served by this manager.
public abstract class AbstractExceptionContextManager<T extends ExceptionContext>
Provides configuration information for exceptions per class loader.
Constructor Summary | |
---|---|
AbstractExceptionContextManager() |
Method Summary | |
---|---|
protected T |
fetchContext(ClassLoader classLoader) Fetches the most appropriate context for the given class loader. |
protected abstract T |
fetchContextFromService(ClassLoader classLoader) Returns the context configured by the service framework. |
T |
getContext(ClassLoader classLoader) Returns the exception configuration for the given class loader. |
protected abstract T |
getDefaultExceptionContext() Returns the default context provided by the subclass. |
void |
setContext(ClassLoader classLoader, T context) Sets the configuration for the given class loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractExceptionContextManager()
Method Detail |
---|
public T getContext(ClassLoader classLoader)
classLoader
- the class loader whose exception configuration is requested.
public void setContext(ClassLoader classLoader, T context)
classLoader
- the class loader whose configuration is to be set.
context
- the context for the class loader to set.
protected T fetchContext(ClassLoader classLoader)
classLoader
- the class loader whose exception context is requested.
protected abstract T fetchContextFromService(ClassLoader classLoader)
classLoader
- the class loader to use.
protected abstract T getDefaultExceptionContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |