|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.exception.ExceptionDelegateFactory
This is the Carbon Factory for building new exception delegates for use
in Carbon based exceptions. This allows for the configuration of a new
Exception Delegate on a system-wide basis, or the default use of the
standard DefaultExceptionDelegateImpl
delegate.
Field Summary | |
private static String |
DELEGATE_PROPERTY
The system property string which can contain the fully-qualified class name of the class to be used as the system's standard exception delegate. |
private static ExceptionDelegateFactory |
INSTANCE
References the single valid instance of this singleton |
private org.apache.commons.logging.Log |
log
The handle to Apache-commons logger |
Constructor Summary | |
private |
ExceptionDelegateFactory()
This is a singleton so we have a private constructor to prevent impropper instantiation. |
Method Summary | |
ExceptionDelegate |
createDelegate(Class exceptionSource,
SeverityEnum severity,
Throwable delegatee,
String message,
Throwable cause)
Creates an exception delegate. |
static ExceptionDelegateFactory |
getInstance()
Static factory method for getting a reference to the ExceptionDelegateFactory . |
protected ExceptionDelegate |
newDelegate()
Creates a new empty exception delegate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.commons.logging.Log log
private static final String DELEGATE_PROPERTY
private static final ExceptionDelegateFactory INSTANCE
Constructor Detail |
private ExceptionDelegateFactory()
This is a singleton so we have a private constructor to prevent impropper instantiation.
Method Detail |
public ExceptionDelegate createDelegate(Class exceptionSource, SeverityEnum severity, Throwable delegatee, String message, Throwable cause)
exceptionSource
- the exception source being delegatedseverity
- the severity of the exceptiondelegatee
- the delegateemessage
- the error message of the exceptioncause
- a cause of the exception
protected ExceptionDelegate newDelegate()
public static ExceptionDelegateFactory getInstance()
Static factory method for getting a reference to the
ExceptionDelegateFactory
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |