Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jaxrs-dev] Another request for extension

Nothing in the JAX-RS 2.1 spec says that javax.ws.rs.ext.RuntimeDelegate$HeaderDelegate is a provider, which means that there is no reason to expect that something like javax.ws.rs.core.Configurable.register(Class<?>) will work for a HeaderDelegate. Moreover, there is no compulsion to recognize a declaration of a HeaderDelegate in a META-INF/services/javax.ws.rs.ext.Providers file, or a definition of a HeaderDelegate annotated with @Provider.

It's much easier to register a HeaderDelegate if it is recognized as a provider. Moreover, Just as one might want to use an application specific MessageBodyReader, one might want to use an application specific header, so it makes sense to think of a HeaderDelegate as a provider.

-Ron

--
My company's smarter than your company (unless you work for Red Hat)



Back to the top