The container fires an event of this type for each observer method of each
enabled bean, before registering the javax.enterprise.inject.spi.ObserverMethod object.
For a custom implementation of ObserverMethod, the container must raise an event of type ProcessSyntheticObserverMethod.
Any observer of this event is permitted to wrap and/or replace the javax.enterprise.inject.spi.ObserverMethod by calling either setObserverMethod(ObserverMethod) or configureObserverMethod().
If both methods are called within an observer notification an IllegalStateException is thrown.
The container must use the final value of this property, after all observers have been called, he container must use the final
value of this property, after all observers have been called, whenever it performs observer resolution.
If any observer method of a ProcessObserverMethod event throws an exception, the exception is treated as a definition
error by the container.
ObserverMethod
| Modifier and Type | Method and Description |
|---|---|
| public void | addDefinitionError(Throwable
A t)java.lang.Throwable representing the definition errorRegisters a definition error with the container, causing the container to abort deployment after bean discovery is complete. |
| public ObserverMethodConfigurator | Returns: a non reusableObserverMethodConfigurator to configure the replacing ObserverMethodReturns a |
| public AnnotatedMethod | Returns: thejavax.enterprise.inject.spi.AnnotatedMethod representing the observer methodThe |
| public ObserverMethod | Returns: thejavax.enterprise.inject.spi.ObserverMethod object that will be used by the container to call the
observer methodThe |
| public void | setObserverMethod(ObserverMethod<T>
the new observerMethod)javax.enterprise.inject.spi.ObserverMethod object to useReplaces the |
| public void |
| addDefinitionError | back to summary |
|---|---|
| public void addDefinitionError(Throwable t) Registers a definition error with the container, causing the container to abort deployment after bean discovery is complete.
| |
| configureObserverMethod | back to summary |
|---|---|
| public ObserverMethodConfigurator Returns a
| |
| getAnnotatedMethod | back to summary |
|---|---|
| public AnnotatedMethod The
If invoked upon a
| |
| getObserverMethod | back to summary |
|---|---|
| public ObserverMethod The
| |
| setObserverMethod | back to summary |
|---|---|
| public void setObserverMethod(ObserverMethod<T> observerMethod) Replaces the
| |
| veto | back to summary |
|---|---|
| public void veto() Forces the container to ignore the observer method.
| |