I put in some significant changes in regards to RESTEasy integration with
both Spring and SpringMVC. Currently, all of these changes are in the
resteasy-springwebmvc project. We may want to either put all of them back
into the resteasy-jaxrs, or have a full resteasy-spring package, and remove
dependencies from resteasy-jaxrs. I'll leave that up to you :). Anyway,
here's the functionality
1) I added a way for Spring to know how to inject @Context annotations for
either member variables or methods (Constructors/setters) that are marked
with @Autowired
2) I added a way to customize Resource registration
3) I added a basic test for the "neat" MVC integration - GroovyView to
follow soon :)
4) I added the ability to have prototype/request scoped Resources created by
Spring
take a look at:
resteasy-springwebmvc/src/test/java/org/jboss/resteasy/springmvc/resources/BasicResource.java
resteasy-springwebmvc/src/test/java/org/jboss/resteasy/springmvc/resources/BasicSpringTest.java
resteasy-springwebmvc/src/test/resources/spring-test1.xml
|