|
Chapter 1 Introduction - Groovy is a new breed of language. It doesn’t replace old technology as much as it enhances it. It was created by Java developers who wanted the day-to-day experience of writing code to be simpler. You no longer have to wade through all of that boilerplate code.Chapter 2 Getting Started - Installing Groovy is just as easy as installing Ant, Tomcat, or Java itself—unzip the distribution, create an environment variable, and ensure that the binaries are in your PATH. Chapter 3 New to Groovy - Groovy automatically includes many more packages than Java does by default. Groovy adds new convenience methods to existing classes such as String, List, and Map. Chapter 4 Java and Groovy Integration - We’ll call Groovy code from Java and Java code from Groovy. And finally we’ll explore how to use Ant to compile our entire project, including a healthy combination of Groovy and Java classes. Chapter 5 Groovy from the Command Line - In this chapter, we’ll talk about running uncompiled Groovy scripts from the command prompt and pulling in command-line arguments from the user. Chapter 6 File Tricks - Groovy offers many shortcuts for dealing with files and directories. Listing files, copying files, renaming files, deleting files—Groovy brings welcome help for all these mundane tasks. Chapter 7 Writing XML - In Chapter 7, Parsing XML, on page 116, we explored different ways to ingest XML. In this chapter, we’ll look at different ways to write XML. Chapter 8 Web Services - In this chapter, we’ll start with the low-level basics of how to determine your local TCP/IP address and domain name and those of remote systems. Chapter 9 Metaprogramming - This chapter shows you ways to programmatically ask your class what fields and methods it has. Chapter 10 Working with Grails - In this chapter, we introduce Grails. All of the lessons we learned about the core language will now be applied to this modern web framework. Chapter 11 Grails and Web Services - In this chapter, we’ll explore RESTful web services, JSON web services, Atom feeds, podcast feeds, and more. Heck, you can even return Excel spreadsheets from a Grails application if you want. Free Download ebook on java: Groovy Recipes: Greasing the Wheels of Java
|
Free programing ebooks
Chapter 1 Introduction - Groovy is a new breed of language. It doesn’t replace old technology as much as it enhances it. It was created by Java developers who wanted the day-to-day experience of writing code to be simpler. You no longer have to wade through all of that boilerplate code.