|
From: Solomon D. <sd...@gm...> - 2012-11-18 00:57:29
|
FYI, you can already add programmatic Resources right now. In my case, I wanted a controller that you plug in a Hibernate supported pojo type, and automatically map it to a url. It was pretty trivial to write, at least with Spring: https://github.com/skyscreamer/yoga/blob/master/yoga-demos/yoga-demo-resteasy/src/main/java/org/skyscreamer/yoga/demo/resteasy/resources/ControllerSubscriber.java -Solomon On Fri, Nov 16, 2012 at 5:58 PM, Bill Burke <bb...@re...> wrote: > I'll be getting to this soon after I do some security prototyping. But > beyond runtime httprequest->POJO mappings, anything more dynamic doesn't > belong in JAX-RS. > > On 11/12/2012 4:20 AM, Stef Epardaud wrote: > > This is very import IMO because in the past I've had to write code that > produces bytecode > > with javassist just for this use-case of being able to add endpoints > dynamically, which > > is just absurd. > > Being able to configure jax-rs resources at run time is very useful for > ror-like frameworks > > and generally services that are dynamic by nature, such as > auto-generated CRUD services for > > entities (which is what I worked on). Granted, a similar thing could > have been done at > > compile-time with APT, but that's not always available (Play Framework > doesn't support it). > > > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > |