An ObserverMethodConfigurator can configure an ObserverMethod. The container must provide an implementation
of this interface.
This configurator is not thread safe and shall not be used concurrently.
CDI Lite implementations are not required to provide support for Portable Extensions.
ProcessObserverMethod#configureObserverMethod(), AfterBeanDiscovery#addObserverMethod()
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ObserverMethodConfigurator.EventConsumer<
event type T>Represents an operation that accepts a context of a fired event. |
| Modifier and Type | Method and Description |
|---|---|
| public ObserverMethodConfigurator | Returns: selfto add to event qualifier)Add the qualifier to the observed event |
| public ObserverMethodConfigurator | Returns: selfto add to event qualifiers)Add all the qualifiers to the Observed event |
| public ObserverMethodConfigurator | Returns: selfto add to event qualifiers)Add all the qualifiers to the Observed event |
| public ObserverMethodConfigurator | Returns: selfasync status async)Allows modification of the asynchronous status of the observer to build. |
| public ObserverMethodConfigurator | |
| public ObserverMethodConfigurator | Returns: selfto call for the event notification callbackDefine an operation that accepts a context of a fired event. |
| public ObserverMethodConfigurator | |
| public ObserverMethodConfigurator | Returns: selfpriority of the observer priority)Set the priority for the observer to build |
| public ObserverMethodConfigurator | Returns: selfto put on event qualifiers)Replace all qualifiers on the Observed event. |
| public ObserverMethodConfigurator | Returns: selfto put on event qualifiers)Replace all qualifiers on the Observed event. |
| public ObserverMethodConfigurator | Returns: selfto read meta data from method)Read observer meta data from a existing |
| public ObserverMethodConfigurator | Returns: selfto read meta data from method)Read observer meta data from a existing |
| public ObserverMethodConfigurator | Returns: selfto read meta data from method)Read observer meta data from a existing ObserverMethod |
| public ObserverMethodConfigurator | |
| public ObserverMethodConfigurator | Returns: selfphase for the observer transactionPhase)Set the |
| addQualifier | back to summary |
|---|---|
| public ObserverMethodConfigurator Add the qualifier to the observed event
| |
| addQualifiers | back to summary |
|---|---|
| public ObserverMethodConfigurator Add all the qualifiers to the Observed event
| |
| addQualifiers | back to summary |
|---|---|
| public ObserverMethodConfigurator Add all the qualifiers to the Observed event
| |
| async | back to summary |
|---|---|
| public ObserverMethodConfigurator Allows modification of the asynchronous status of the observer to build.
| |
| beanClass | back to summary |
|---|---|
| public ObserverMethodConfigurator Set the class of the Bean containing this observer. If not set, the extension class is used.
| |
| notifyWith | back to summary |
|---|---|
| public ObserverMethodConfigurator Define an operation that accepts a context of a fired event.
| |
| observedType | back to summary |
|---|---|
| public ObserverMethodConfigurator Set the type of the observed event
| |
| priority | back to summary |
|---|---|
| public ObserverMethodConfigurator Set the priority for the observer to build
| |
| qualifiers | back to summary |
|---|---|
| public ObserverMethodConfigurator Replace all qualifiers on the Observed event.
| |
| qualifiers | back to summary |
|---|---|
| public ObserverMethodConfigurator Replace all qualifiers on the Observed event.
| |
| read | back to summary |
|---|---|
| public ObserverMethodConfigurator Read observer meta data from a existing
| |
| read | back to summary |
|---|---|
| public ObserverMethodConfigurator Read observer meta data from a existing
| |
| read | back to summary |
|---|---|
| public ObserverMethodConfigurator Read observer meta data from a existing ObserverMethod
| |
| reception | back to summary |
|---|---|
| public ObserverMethodConfigurator Set the
| |
| transactionPhase | back to summary |
|---|---|
| public ObserverMethodConfigurator Set the
| |
EventContext
| Modifier and Type | Method and Description |
|---|---|
| public void |
| accept | back to summary |
|---|---|
public void accept(EventContext<T> eventContext) throws Exception
| |