Annotation Type Any

  • @Qualifier
    public @interface Any

    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.

     Instance<PaymentProcessor> anyPaymentProcessor;
     Event<User> anyUserEvent;
     Logger logger;
    Gavin King, David Allen