ContextResolver implementation may be annotated
with javax.ws.rs.Produces to restrict the media types for
which it will be considered suitable.
Providers implementing ContextResolver contract must be either programmatically
registered in a JAX-RS runtime or must be annotated with
@Provider annotation to be automatically discovered
by the JAX-RS runtime during a provider scanning phase.
javax.ws.rs.core.Context, Providers#getContextResolver(Class, javax.ws.rs.core.MediaType), Provider, javax.ws.rs.Produces
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: a context for the supplied type ornull if a
context for the supplied type is not available from this provider.the class of object for which a context is desired type)Get a context of type |
| getContext | back to summary |
|---|---|
| public T getContext(Class<?> type) Get a context of type
| |