CHAPTER 11 CASE STUDY

A LIBRARY APPLICATION (METHODS, CLOSURES)

This chapter illustrates the power of Groovy methods and closures by constructing solutions to the small case study first introduced in Chapter 6. As before, we present a simple model of the loan data kept by a library. Our library maintains a record of the titles of the books in stock and the names of the borrowers who have been loaned one or more books.

As in the case study of Chapter 6, we develop the library application as a series of iterations. This lets us add functionality to the application in a controlled manner. It also ensures that we have a working (partial) solution as early as possible. The first iteration demonstrates that we can achieve the required functionality ...

Get Groovy Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.