users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] DynamicFeature and multiple root resources

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Thu, 13 Dec 2012 12:56:36 +0000

Consider the case where a user would like to make sure each of the
available root resource classes gets its own filters/interceptors.

Dynamic feature can help with the implementation calling back with the
list of interceptors depending on the name of the root class available
from ResourceContext -

but would it make sense to optimize slightly and make it possible to
callback with the name of the root class, so that the runtime can
immediately move to working with another root classes if any ?

I guess it can be a minor optimization detail - but may be it will make
sense to the experts

Sergey