@BeanPropertyType
@RequireJaxrsWhiteboard
@Requirement(namespace="osgi.service",
filter="(osgi.jaxrs.media.type=application/json)",
effective="active")
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD,TYPE,PACKAGE})
public @interface JSONRequired
JaxrsWhiteboardConstants.JAX_RS_MEDIA_TYPE service property.
This annotation can be used on a JAX-RS 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.
| Modifier and Type | Fields and Description |
|---|---|
static String |
FILTER
A filter requiring an
osgi.jaxrs.media.type of
application/json |
| Modifier and Type | Optional Element and Description |
|---|---|
String |
osgi_jaxrs_extension_select
Provides an extension selection filter for an extension supporting the
JSON media type
|
public static final String FILTER
osgi.jaxrs.media.type of
application/jsonpublic abstract String osgi_jaxrs_extension_select
osgi.jaxrs.media.type of
application/jsonCopyright © 2020 The Apache Software Foundation. All rights reserved.