Java Reference
In-Depth Information
7.7. Summary
This chapter demonstrated all the places where Groovy can work productively with the
Spring framework. In addition to writing Spring beans in Groovy, which sometimes results
in significant code savings, there are features of Spring unique to beans from dynamic lan-
guages. I showed both refreshable beans, in which you deploy the source code and can
revise it without stopping the system, and inline scripted beans, in which the beans are
defined directly in the configuration file. Groovy beans can also be Spring AOP aspects, as
shown. Finally, I reviewed tests from the BeanBuilder class from Grails, which can be
used to create Spring bean definitions using the normal Groovy builder syntax, even out-
side of Grails.
In the next chapter, it's time to look at database development and manipulation. There, in
addition to the cool capabilities of the groovy.sql.Sql class, I'll also use another con-
tribution from the Grails project, the Grails Object Relational Mapping (GORM) capabil-
ity.
Search WWH ::




Custom Search