Top Description Inners Methods
javax.enterprise.inject

public @Interface Any

extends Annotation
Known Direct Implementers
javax.enterprise.inject.Any.Literal
Annotations
@Qualifier
@Retention:RUNTIME
@Target:TYPE, METHOD, FIELD, PARAMETER
@Documented
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE, .RetentionPolicy.RUNTIME

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;
Authors
Gavin King, David Allen

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Any.Literal

Supports inline instantiation of the Any qualifier.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
javax.enterprise.inject back to summary

public final Class Any.Literal

extends AnnotationLiteral<Any>
implements Any
Class Inheritance
All Implemented Interfaces
javax.enterprise.inject.Any, java.lang.annotation.Annotation

Supports inline instantiation of the Any qualifier.
Author
Martin Kouba
Since
2.0
See Also
Instance, Event

Field Summary

Modifier and TypeField and Description
public static final Any.Literal
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from javax.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final Any.Literal INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()