Top Description Fields Constructors Methods
javax.enterprise.event

public final Enum Reception

extends Enum<Reception>
Class Inheritance

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.

Authors
Gavin King, Dan Allen, David Allen

Field Summary

Modifier and TypeField 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.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Reception
public static Reception[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALWAYSback to summary
public static final Reception ALWAYS

Specifies that an observer method always receives event notifications.

IF_EXISTSback 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.

Constructor Detail

Receptionback to summary
private Reception()

Method Detail

valueOfback to summary
public static Reception valueOf(String name)
valuesback to summary
public static Reception[] values()