Annotation Type ServiceInstance


  • @Documented
    @Retention(RUNTIME)
    @Target({TYPE,FIELD,METHOD})
    public @interface ServiceInstance
    Annotation used on beans, observer methods and observer fields to specify the service scope for the service. Used in conjunction with Service.
    Author:
    $Id: 6a6cbd55e28c89b955abeeecfe55f3579cca87d5 $
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      ServiceScope value
      The scope of the service.
    • Element Detail

      • value

        ServiceScope value
        The scope of the service.
        Default:
        org.osgi.service.cdi.ServiceScope.SINGLETON