|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channels.error.error2xml.DelegatingThrowableToElement
@Deprecated public class DelegatingThrowableToElement
A wrapper for a List of child ThrowableToElements and the logic to poll them in order, accepting the result from the first to support the given throwable. Defaults to the standard List of ThrowableToElement implementations, but provides API hooks to change the list. You can add handling for other Throwables by either editing this implementation code to include additional ThrowableToElement implementations by default or by injecting a different List of ThrowableToElement implementations where the instance of this class that CError actually uses is configured in applicationContext.xml.
| Constructor Summary | |
|---|---|
DelegatingThrowableToElement()
Deprecated. Instantiate a DelegatingThrowableToElement with a default List of delegates. |
|
| Method Summary | |
|---|---|
List |
getThrowableToElements()
Deprecated. Get the List of ThrowableToElements delegates. |
void |
setThrowableToElements(List throwableToElements)
Deprecated. Set the List of ThrowableToElement implementations which this implementation will poll in order. |
boolean |
supports(Class c)
Deprecated. Returns true if the implementation knows how to translate an instance of the given class into an Element (throwableToElement() will return non-null) for instances of the class, which must extend Throwable). |
Element |
throwableToElement(Throwable t,
Document parentDoc)
Deprecated. Obtain an Element representing the throwable. |
String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingThrowableToElement()
| Method Detail |
|---|
public List getThrowableToElements()
public void setThrowableToElements(List throwableToElements)
throwableToElements - List of ThrowableToElement impls.
public boolean supports(Class c)
throws IllegalArgumentException
IThrowableToElement
supports in interface IThrowableToElementc - a Class extending Throwable
IllegalArgumentException - if c is null or does not extend Throwable
public Element throwableToElement(Throwable t,
Document parentDoc)
throws IllegalArgumentException
IThrowableToElement
throwableToElement in interface IThrowableToElementt - a supported throwableparentDoc - document into which the element is to go
IllegalArgumentException - if t is null.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||