|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.observer.error.ErrorObserverList
public final class ErrorObserverList
This class provides a type-safe list of observers for the error event.
| Constructor Summary | |
|---|---|
ErrorObserverList()
|
|
| Method Summary | |
|---|---|
void |
add(ErrorObserver observer)
Add an observer to the list. |
static ErrorObserver |
register(ErrorObserver list,
ErrorObserver observer)
Take a list and add an observer. |
void |
update(java.lang.Exception e)
Invoke all observers on the list to inform them of the error occurred. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorObserverList()
| Method Detail |
|---|
public static ErrorObserver register(ErrorObserver list,
ErrorObserver observer)
null then
a new one is created.
list - the input list or nullobserver - the observer to add
public void add(ErrorObserver observer)
observer - the observer to add to the listpublic void update(java.lang.Exception e)
update in interface ErrorObservere - the exception describing the error conditionErrorObserver.update(
java.lang.Exception)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||