Class Reference.Any

java.lang.Object
org.osgi.service.cdi.annotations.Reference.Any
Enclosing class:
Reference

public static final class Reference.Any extends Object
A marker type used in Reference.value() to indicate that a reference injection point may accept any service type(s).

The injection point service type must be specified as Object.

The value must be specified by itself.

For example:

 @Inject
 @Reference(value = Any.class, target = "(bar=baz)")
 List<Object> services;
 
  • Constructor Details

    • Any

      public Any()