Example the spring integration
Integrating with Spring using Groovy-Restlet is straightforward.
Using ofBean attribute
The bean userResource is defined spring definition file as followed:
Using ofClass attribute
If spring context is specified when creating GroovyRestlet instance, Spring'` AutowireCapableBeanFactory will be used to create that instance and autowire all necessary properties.
Labels