T- type of the context
public interface ContextResolver<T>
ContextResolverimplementation may be annotated with
Producesto restrict the media types for which it will be considered suitable.
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.
T getContext(java.lang.Class<?> type)
Tthat is applicable to the supplied type.
type- the class of object for which a context is desired
nullif a context for the supplied type is not available from this provider.