Annotation Type Any

public @interface Any

The built-in qualifier type.

Every bean has the qualifier @Any, even if it does not explicitly declare this qualifier, except for the special @New qualified beans.

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;

Gavin King, David Allen

Copyright © 2008-2009 Seam Framework. All Rights Reserved.