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 (marek.potociar at oracle.com)
resolve
<T> ContextResolver<T> resolve(Type type,
MediaType mediaType)
- Get
ContextResolver<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
.
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.