public static enum Listener.Observation extends Enum<Listener.Observation>
PRE
level. If the user wishes to be notified only
after the operation completes the listener should observe using POST
level. If the user
wishes to have an event before and after they should observe using BOTH
level.Enum Constant and Description |
---|
BOTH
Observation level used to be notified of an operation before and after it occurs
|
POST
Observation level used to only be notified of an operation after it has completed
|
PRE
Observation level used to only be notified of an operation before it completes
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
shouldInvoke(boolean pre) |
static Listener.Observation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Listener.Observation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Listener.Observation PRE
public static final Listener.Observation POST
public static final Listener.Observation BOTH
public static Listener.Observation[] values()
for (Listener.Observation c : Listener.Observation.values()) System.out.println(c);
public static Listener.Observation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean shouldInvoke(boolean pre)
Copyright © 2021 JBoss by Red Hat. All rights reserved.