The built-in qualifier type.
Every bean has the qualifier @Any, even if it does not explicitly declare this qualifier.
Every event has the qualifier @Any, even if it was raised without explicitly declaration of this qualifier.
The @Any qualifier allows an injection point to refer to all beans or all events of a certain bean type.
@Inject @Any Instance<PaymentProcessor> anyPaymentProcessor;
@Inject @Any Event<User> anyUserEvent;
@Inject @Delegate @Any Logger logger;
| Modifier and Type | Class and Description |
|---|---|
| public static class | Any.
Supports inline instantiation of the |
Any qualifier.
| Modifier and Type | Field and Description |
|---|---|
| public static final Any. | INSTANCE
Default Any literal |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| INSTANCE | back to summary |
|---|---|
| public static final Any. Default Any literal | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| Literal | back to summary |
|---|---|
| public Literal() | |