configurable JAX-RS context.
Defines the components as well as additional meta-data for the configured context.
A configuration state may be used to retrieve configuration information about
of the associated JAX-RS context (e.g. application, resource method, etc.) or component
(e.g. javax.ws.rs.client.Client, javax.ws.rs.client.WebTarget, etc.).
Configuration information consists of properties, registered JAX-RS component classes
and/or instances.
This interface can be injected using the Context annotation.
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: the immutable set of registered JAX-RS component classes. The returned value may be empty but will never benull.Get the immutable set of registered JAX-RS component (such as provider or
|
| public Map | Returns: map of extension contracts and their priorities for which the component class is registered. May return an empty map in case the component has not been registered for any extension contract supported by the implementation.Get the extension contract registration information for a component of a given class. |
| public Set | Returns: the immutable set of registered JAX-RS component instances. The returned value may be empty but will never benull.Get the immutable set of registered JAX-RS component (such as provider or
|
| public Map | Returns: the immutable view of configuration properties.Get the immutable bag of configuration properties. |
| public Object | Returns: the property value for the specified property name ornull
if the property with such name is not configured.property name. name)Get the value for the property with a given name. |
| public Collection | Returns: an immutablecollection of property names.Returns an immutable |
| public RuntimeType | Returns: configuration context runtime type.Get the runtime type of this configuration context. |
| public boolean | |
| public boolean | Returns: true if a feature of a given class has been previously enabled in this
configuration context, false otherwise.a feature class to test for. featureClass)Check if a |
| public boolean | Returns: true if the component instance has been previously registered in this
configuration context, false otherwise.a component instance to test for. component)Check if a particular JAX-RS |
| public boolean | Returns: true if a component of a given class has been previously registered in this
configuration context, false otherwise.a component class to test for. componentClass)Check if a JAX-RS component of the supplied |
| getClasses | back to summary |
|---|---|
| public Set Get the immutable set of registered JAX-RS component (such as provider or
For each component type, there can be only a single class-based or instance-based registration present in the configuration context at any given time.
| |
| getContracts | back to summary |
|---|---|
| public Map Get the extension contract registration information for a component of a given class.
For component classes that are not configured in this configuration context the method returns
an empty | |
| getInstances | back to summary |
|---|---|
| public Set Get the immutable set of registered JAX-RS component (such as provider or
For each component type, there can be only a single class-based or instance-based registration present in the configuration context at any given time.
| |
| getProperties | back to summary |
|---|---|
| public Map Get the immutable bag of configuration properties. | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) Get the value for the property with a given name. | |
| getPropertyNames | back to summary |
|---|---|
| public Collection Returns an immutable
Use the
| |
| getRuntimeType | back to summary |
|---|---|
| public RuntimeType getRuntimeType() Get the runtime type of this configuration context.
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled(Feature feature) Check if a particular
Method returns
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled(Class<? extends Feature> featureClass) Check if a
Method returns | |
| isRegistered | back to summary |
|---|---|
| public boolean isRegistered(Object component) Check if a particular JAX-RS
Method returns
| |
| isRegistered | back to summary |
|---|---|
| public boolean isRegistered(Class<?> componentClass) Check if a JAX-RS component of the supplied
Method returns
| |