|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ObserverManager.NotificationPolicy> dk.rode.thesis.observer.ObserverManager.NotificationPolicy
public static enum ObserverManager.NotificationPolicy
Default error handlers for observer registries.
Enum Constant Summary | |
---|---|
ContinueOnError
Any error thrown during notification to an observer is handled, and the notification will thus continue to notify the remaining observers. |
|
StopOnError
Any error thrown during notification to an observer will cause the notification to stop, and remaining observers are not notified. |
Method Summary | |
---|---|
static ObserverManager.NotificationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ObserverManager.NotificationPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface dk.rode.thesis.meta.util.ErrorHandler |
---|
handle |
Enum Constant Detail |
---|
public static final ObserverManager.NotificationPolicy ContinueOnError
public static final ObserverManager.NotificationPolicy StopOnError
Method Detail |
---|
public static ObserverManager.NotificationPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ObserverManager.NotificationPolicy[] values()
for (ObserverManager.NotificationPolicy c : ObserverManager.NotificationPolicy.values()) System.out.println(c);
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |