Java Reference
In-Depth Information
3. Grails services are Spring-managed beans that are autowired by name into other
artifacts. They use Spring's transaction management by default.
4. The plugin design of the Grails architecture makes it easy to add additional capab-
ilities.
Grails uses Spring and Hibernate under the hood, so it mixes Groovy-based domain-spe-
cific languages on top of major Java libraries.
10.5. Summary
This chapter examined ways Groovy helps with testing and building web applications. Unit
tests are similar to their Java counterparts, but the Gradle build framework provides a great
way to do integration testing of deployed applications.
The Groovy JDK includes classes like ServletCategory , which simplify the imple-
mentation of web components. Groovy also has a built-in web scripting engine called
groovlets, which makes it easy to work with requests, responses, sessions, and input para-
meters in a web application.
Finally, this chapter includes a brief discussion of Grails, possibly the biggest Java/Groovy
integration success story of them all.
Search WWH ::




Custom Search