Distinguishes conditional observer methods from observer methods which are always notified.
A conditional observer method is an observer method which is notified of an event only if an instance of the bean that defines the observer method already exists in the current context.
Beans with scope @Dependent may not have conditional observer methods.
| Modifier and Type | Field and Description |
|---|---|
| public static final Reception | ALWAYS
Specifies that an observer method always receives event notifications. |
| public static final Reception | IF_EXISTS
Specifies that an observer method is only called if the current instance of the bean declaring the observer method already exists. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Reception | |
| public static Reception[] |
| ALWAYS | back to summary |
|---|---|
| public static final Reception ALWAYS Specifies that an observer method always receives event notifications. | |
| IF_EXISTS | back to summary |
|---|---|
| public static final Reception IF_EXISTS Specifies that an observer method is only called if the current instance of the bean declaring the observer method already exists. If there is no active context for the scope to which the bean declaring this observer method belongs, then the observer method is not called. | |
| Reception | back to summary |
|---|---|
| private Reception() | |
| valueOf | back to summary |
|---|---|
| public static Reception valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Reception[] values() | |