Annotation Interface JSONRequired


@Retention(CLASS) @Target(TYPE) @RequireJakartarsWhiteboard @Requirement(namespace="osgi.service", filter="(osgi.jakartars.media.type=application/json)", resolution="OPTIONAL", effective="active") @ComponentPropertyType public @interface JSONRequired
Component Property Type for requiring JSON media type support using the JakartarsWhiteboardConstants.JAKARTA_RS_MEDIA_TYPE service property.

This annotation can be used on a Jakarta RESTful Web Services whiteboard resource to declare require that JSON support is available before the resource becomes active. It also adds an optional Requirement for a service providing this media type to aid with provisioning.

See Also:
  • "Component Property Types"
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Provides an extension selection filter for an extension supporting the JSON media type
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A filter requiring an osgi.jakartars.media.type of application/json
  • Field Details

    • FILTER

      static final String FILTER
      A filter requiring an osgi.jakartars.media.type of application/json
      See Also:
  • Element Details

    • osgi_jakartars_extension_select

      String osgi_jakartars_extension_select
      Provides an extension selection filter for an extension supporting the JSON media type
      Returns:
      A filter requiring an osgi.jakartars.media.type of application/json
      Default:
      "(osgi.jakartars.media.type=application/json)"