public abstract class ProcessingContext<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected LogThreshold |
currentThreshold |
protected LogThreshold |
exceptionThreshold |
protected LogThreshold |
logThreshold |
Constructor and Description |
---|
ProcessingContext() |
Modifier and Type | Method and Description |
---|---|
abstract ProcessingException |
buildException(ProcessingMessage msg) |
void |
debug(ProcessingMessage msg) |
void |
error(ProcessingMessage msg) |
void |
fatal(ProcessingMessage msg) |
abstract T |
getOutput() |
void |
info(ProcessingMessage msg) |
boolean |
isSuccess() |
abstract void |
log(ProcessingMessage msg) |
abstract ProcessingMessage |
newMessage() |
void |
setExceptionThreshold(LogThreshold threshold) |
void |
setLogThreshold(LogThreshold threshold) |
void |
warn(ProcessingMessage msg) |
protected LogThreshold currentThreshold
protected LogThreshold logThreshold
protected LogThreshold exceptionThreshold
public final void setLogThreshold(LogThreshold threshold)
public final void setExceptionThreshold(LogThreshold threshold)
public final void debug(ProcessingMessage msg) throws ProcessingException
ProcessingException
public final void info(ProcessingMessage msg) throws ProcessingException
ProcessingException
public final void warn(ProcessingMessage msg) throws ProcessingException
ProcessingException
public final void error(ProcessingMessage msg) throws ProcessingException
ProcessingException
public final void fatal(ProcessingMessage msg) throws ProcessingException
ProcessingException
public final boolean isSuccess()
public abstract void log(ProcessingMessage msg)
public abstract ProcessingException buildException(ProcessingMessage msg)
public abstract ProcessingMessage newMessage()
public abstract T getOutput()
Copyright © 2013. All Rights Reserved.