public final class AnyService extends Object
interface
attribute of a
reference
element in a component description to indicate that the
type of the service for a reference is not specified and can thus be any
service type.
When specifying this marker type in the interface
attribute of a
reference
element in a component description:
java.lang.Object
so that any service object can be provided.target
attribute of the reference
element must be
specified to constrain the target services.For example:
@Reference(service = AnyService.class, target = "(osgi.jaxrs.extension=true)") List<Object> extensions;
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0