Class ContextResolverFactory

  • All Implemented Interfaces:
    ContextResolvers

    public class ContextResolverFactory
    extends Object
    implements ContextResolvers
    A factory implementation for managing ContextResolver instances.
    Author:
    Paul Sandoz, Marek Potociar
    • Method Detail

      • resolve

        public <T> jakarta.ws.rs.ext.ContextResolver<T> resolve​(Type t,
                                                                jakarta.ws.rs.core.MediaType m)
        Description copied from interface: ContextResolvers
        Get ContextResolver<T> instance for a given type and media type.
        Specified by:
        resolve in interface ContextResolvers
        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.