Annotation Type ServiceReference


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface ServiceReference
    Identify the annotated method as the activate method of a Service Component.

    The annotated method is the activate method of the Component.

    This annotation is not processed at runtime by Service Component Runtime. It must be processed by tools and used to add a Component Description to the bundle.

    See Also:
    "The activate attribute of the component element of a Component Description."
    • Element Detail

      • mandatory

        boolean mandatory
        Default:
        true
      • timeout

        long timeout
        Default:
        0L
      • service

        Class<?> service
        Default:
        java.lang.Object.class
      • ranking

        int ranking
        Default:
        0
      • unset

        boolean unset
        Default:
        false