|
From: Daniel B. <dbe...@re...> - 2012-10-23 16:04:49
|
Hi! We are working on a task in AeroGear and it requires being able to programmatically configure RESTful endpoints. As part of this work we have put together a suggestion for what this might look like. Details with examples can be found in this gist: https://gist.github.com/3938238 We would be interested in hearing what the community/team thinks of this and any feedback is most welcome. Thanks, /Daniel |
|
From: Weinan L. <we...@re...> - 2012-10-24 13:58:50
|
Hi Daniel, I'm checking this and will give you feedback soon! -- Weinan Li JBoss, Red Hat On Tuesday, October 23, 2012 at 11:36 PM, Daniel Bevenius wrote: > Hi! > > We are working on a task in AeroGear and it requires being able to programmatically configure RESTful endpoints. As part of this work we have put together a suggestion for what this might look like. > Details with examples can be found in this gist: https://gist.github.com/3938238 > > We would be interested in hearing what the community/team thinks of this and any feedback is most welcome. > > Thanks, > > /Daniel > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Resteasy-developers mailing list > Res...@li... (mailto:Res...@li...) > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > |
|
From: Bill B. <bb...@re...> - 2012-10-24 14:08:12
|
Interesting stuff, but this is similar to multiple "I want XML" discussions we've had over the years. JAX-RS is an annotation framework. What exact advantages would separating http mapping metadata from annotations give you as a developer? On 10/23/2012 11:36 AM, Daniel Bevenius wrote: > Hi! > > We are working on a task in AeroGear and it requires being able to programmatically configure RESTful endpoints. As part of this work we have put together a suggestion for what this might look like. > Details with examples can be found in this gist: https://gist.github.com/3938238 > > We would be interested in hearing what the community/team thinks of this and any feedback is most welcome. > > Thanks, > > /Daniel > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Douglas C. <qm...@qm...> - 2012-10-24 16:03:57
|
On Oct 24, 2012, at 12:08 PM, Bill Burke wrote: > Interesting stuff, but this is similar to multiple "I want XML" > discussions we've had over the years. > > JAX-RS is an annotation framework. What exact advantages would > separating http mapping metadata from annotations give you as a developer? > Re-using all the spec-compliant machinery and at the same time being friendly to newcomers from other languages (rails, etc) We've talked about it in the past, remember? > > On 10/23/2012 11:36 AM, Daniel Bevenius wrote: >> Hi! >> >> We are working on a task in AeroGear and it requires being able to programmatically configure RESTful endpoints. As part of this work we have put together a suggestion for what this might look like. >> Details with examples can be found in this gist: https://gist.github.com/3938238 >> >> We would be interested in hearing what the community/team thinks of this and any feedback is most welcome. >> >> Thanks, >> >> /Daniel >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> _______________________________________________ >> Resteasy-developers mailing list >> Res...@li... >> https://lists.sourceforge.net/lists/listinfo/resteasy-developers >> > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers -- qmx |
|
From: Stef E. <st...@ep...> - 2012-11-12 09:34:33
|
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). -- Stéphane Epardaud |
|
From: Bill B. <bb...@re...> - 2012-11-16 23:58:57
|
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 |
|
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 > |
|
From: Bill B. <bb...@re...> - 2012-11-19 16:36:48
|
Solomon, they want to be able to have a POJO with no annotations and dynamically define a mapping using metadata. On 11/17/2012 7:57 PM, Solomon Duskis wrote: > 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... > <mailto: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... > <mailto:Res...@li...> > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |