|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.inspektr.error.support.DefaultErrorLogManager
public class DefaultErrorLogManager
An ErrorLogManager
implementation.
Constructor Summary | |
---|---|
DefaultErrorLogManager(java.lang.String applicationCode,
java.util.List<ErrorReporter> errorReporters)
Constructs a new DefaultErrorLogManager . |
Method Summary | |
---|---|
java.util.List<ErrorReporter> |
getErrorReporters()
Returns the list of ErrorReporter associated with this manager. |
void |
recordError(java.lang.String errorDescription)
Records the specified error. |
void |
recordError(java.lang.Throwable throwable)
Records the specified throwable. |
void |
setCurrentContextPrincipalResolver(CurrentContextPrincipalResolver resolver)
Sets the currentContextPrincipalResolver . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultErrorLogManager(java.lang.String applicationCode, java.util.List<ErrorReporter> errorReporters)
DefaultErrorLogManager
.
applicationCode
- The application identifier to use when reporting errors.errorReporters
- A list of ErrorReporters
to use for reporting errors.Method Detail |
---|
public void setCurrentContextPrincipalResolver(CurrentContextPrincipalResolver resolver)
currentContextPrincipalResolver
. The resolver will be
used to resolve current context information on the principal.
resolver
- the CurrentContextPrincipalResolver
to use.public void recordError(java.lang.String errorDescription)
ErrorLogManager
recordError
in interface ErrorLogManager
errorDescription
- The error description.public void recordError(java.lang.Throwable throwable)
ErrorLogManager
recordError
in interface ErrorLogManager
throwable
- The throwable describing the error.public java.util.List<ErrorReporter> getErrorReporters()
ErrorLogManager
ErrorReporter
associated with this manager.
getErrorReporters
in interface ErrorLogManager
ErrorReporters
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |