Package org.glassfish.jersey.spi
Interface ContextResolvers
- All Known Implementing Classes:
ContextResolverFactory
public interface ContextResolvers
An injectable interface providing look-up for
ContextResolver<T>
provider instances.- Author:
- Marek Potociar
-
Method Summary
Modifier and TypeMethodDescription<T> ContextResolver<T>
GetContextResolver<T>
instance for a given type and media type.
-
Method Details
-
resolve
GetContextResolver<T>
instance for a given type and media type.- Type Parameters:
T
- Java type produced by the context resolver.- Parameters:
type
- type supported by the context resolver.mediaType
- media type supported by the context resolver.- Returns:
- proper context resolver instance if found, otherwise
null
.
-