@Qualifier @Target(value={PARAMETER,METHOD,FIELD,CONSTRUCTOR}) @Retention(value=RUNTIME) public @interface DiameterObserver
DiameterBean
.
A parameter of the observer method may be annotated with this
annotation to filter the CDI observer method resolution.
For example, to receive to receive messages with different
command codes to different methods, a DiameterBean
may use the following code:
public void handleSTR(@Observes @DiameterObserver(code=275) Answer answer) { //Business logic. } public void handleCCA(@Observes @DiameterObserver(code=272) Answer answer) { //Business logic. }
DiameterBean
Modifier and Type | Required Element and Description |
---|---|
int |
code
Code of the diameter command associated with the message.
|