Package org.glassfish.jersey.internal
Class ContextResolverFactory
java.lang.Object
org.glassfish.jersey.internal.ContextResolverFactory
- All Implemented Interfaces:
ContextResolvers
A factory implementation for managing
ContextResolver instances.- Author:
- Paul Sandoz, Marek Potociar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfigurator which initializes and registerContextResolversinstance intoInjectionManagerandBootstrapBag. -
Method Summary
Modifier and TypeMethodDescription<T> ContextResolver<T>GetContextResolver<T>instance for a given type and media type.
-
Method Details
-
resolve
Description copied from interface:ContextResolversGetContextResolver<T>instance for a given type and media type.- Specified by:
resolvein interfaceContextResolvers- Type Parameters:
T- Java type produced by the context resolver.- Parameters:
t- type supported by the context resolver.m- media type supported by the context resolver.- Returns:
- proper context resolver instance if found, otherwise
null.
-