|
From: Bill B. <bb...@re...> - 2008-10-09 20:45:59
|
I was thinking about your post here as well as looking at your blog that described various Spring+JAX-RS integration. I think it would be interesting to expand on your ideas. Want to help? I was thinking first step on developing a set of classes that allowed you to define a set of JAX-RS Resources and Providers. Basically what CXF allows you to do and group providers, resources, and configuration options into individual sets. i.e. * A set of providers that apply to a specific set of resources. * A set of providers that apply to only one resource (allows you to override marshalling per resource. * A set of config that applies to a provider and/or a resource * Etc... Creating the classes for this is pretty easy and straightforward. What I don't know how to do is define my own XML namespace/schema and plug it into Spring (or Seam for that matter as I know they have something similar). As a first step, would you be interested in defining/creating that integration? Then we can look at refactoring Resteasy to provide that kind of fine-grain scoping. Bill Burke wrote: > > Solomon Duskis wrote: >> Re ResourceExposingService - I guess it was a bad name... I basically >> meant ResteasyRegistration. I do hope this makes it into the RESTEasy core. >> >> Re IoC container dependency: What I really want is a way to use the >> Spring MVC framework right along side JAX-RS/RESTEasy. It will allow me >> to configure which requests go to Spring MVC Controllers/Struts >> Actions/JAX-RS Resources and how to render Views/Producers with >> Velocity/Freemarker/Tiles/JSP. In order to get that to work properly, >> I'll need to store the Registry et al in the Spring Application context >> instead of the ServletContext. >> > > Why do you need access to the Registry? And if you really do, can't it > be manually registered? > >> Perhaps I'll just vet some ideas in this group as to how I could use >> RESTEasy towards my ends. The means I use to achieve my ends may may be >> helpful for other MVC and IoC integrations such as Struts2/Guice... I >> know RESTEasy already works with Seam ;). >> > > Yes, please brainstorm. I'm Spring ignorant beyond basic IoC so any > insight would be invaluable. > > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |