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