Package org.glassfish.jersey.internal
Class ContextResolverFactory
- java.lang.Object
-
- org.glassfish.jersey.internal.ContextResolverFactory
-
- All Implemented Interfaces:
ContextResolvers
public class ContextResolverFactory extends Object implements ContextResolvers
A factory implementation for managingContextResolver
instances.- Author:
- Paul Sandoz, Marek Potociar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContextResolverFactory.ContextResolversConfigurator
Configurator which initializes and registerContextResolvers
instance intoInjectionManager
andBootstrapBag
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ContextResolver<T>
resolve(Type t, MediaType m)
GetContextResolver<T>
instance for a given type and media type.
-
-
-
Method Detail
-
resolve
public <T> ContextResolver<T> resolve(Type t, MediaType m)
Description copied from interface:ContextResolvers
GetContextResolver<T>
instance for a given type and media type.- Specified by:
resolve
in 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
.
-
-