Hi Fabio,
sorry for the delay, I was on holiday.
You could
1. create and add another subclass of javax.ws.rs.Application, with
your additional classes,
2. build a subclass or org.restlet.ext.jaxrs.JaxRsApplication, where
you could add the singletons or classes directly, or
3. use your proposal.
I preferer the first or second way, because you don't need to double the
initialization code.
best regards
Stephan
[email protected] schrieb:
> Hi everybody,
>
> a quick question to evaluate the feasibility of a project. Is it possible to
> dynamically add or remove resources and providers from a JAX-RS application?
>
> I looked at the API and it doesn't seem possible, though the class
> JaxRsRestlet gives some hope. Maybe by using directly this class (with a bit
> of code duplication for the initialization) instead of initializing the
> application in the "canonical" way using JaxRsApplication +
> javax.ws.rs.core.Application would work.
>
> Any hint/comment?
>
> Thanks,
> Fabio
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2361867