cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Seeming JAX-RS mistake
Date Mon, 31 Aug 2009 23:26:34 GMT
This can't work right for generic types (like collections), since it doesn't
use java.lang.reflect.Type.

public interface ContextResolver<T> {

    /**
     * Get a context of type <code>T</code> that is applicable to the
supplied
     * type.
     * @param type the class of object for which a context is desired
     * @return a context for the supplied type or <code>null</code> if a
     * context for the supplied type is not available from this provider.
     */
    T getContext(Class<?> type);
}

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message