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 Details

    • 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.