Class AnyService


  • public final class AnyService
    extends java.lang.Object
    A marker type whose name is used in the 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:

    • The service type of the reference member or parameter must be java.lang.Object so that any service object can be provided.
    • The 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;
     
    Since:
    1.5
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait