|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Qualifier @Retention(value=RUNTIME) @Target(value={TYPE,METHOD,FIELD,PARAMETER}) @Documented 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;
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41