Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Biznes i Ekonomia
- Home and garden
- E-business
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
- Ebooks
- Programming
- Programming techniques
- Groovy 2 Cookbook. Java and Groovy go together like ham and eggs, and this book is a great opportunity to learn how to exploit Groovy 2 to the full. Packed with recipes, both intermediate and advanced, it's a great way to speed up and modernize your programming
E-book details
Log in, If you're interested in the contents of the item.
Groovy 2 Cookbook. Java and Groovy go together like ham and eggs, and this book is a great opportunity to learn how to exploit Groovy 2 to the full. Packed with recipes, both intermediate and advanced, it's a great way to speed up and modernize your programming
Luciano Fiandesio, Andrey Adamovich, Andrey Adamovich And Luciano Fiandesio
Ebook
Get up to speed with Groovy, a language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. This book will show you the powerful features of Groovy 2 applied to real-world scenarios and how the dynamic nature of the language makes it very simple to tackle problems that would otherwise require hours or days of research and implementation.
Groovy 2 Cookbook contains a vast number of recipes covering many facets of today's programming landscape. From language-specific topics such as closures and metaprogramming, to more advanced applications of Groovy flexibility such as DSL and testing techniques, this book gives you quick solutions to everyday problems.
The recipes in this book start from the basics of installing Groovy and running your first scripts and continue with progressively more advanced examples that will help you to take advantage of the language's amazing features.
Packed with hundreds of tried-and-true Groovy recipes, Groovy 2 Cookbook includes code segments covering many specialized APIs to work with files and collections, manipulate XML, work with REST services and JSON, create asynchronous tasks, and more. But Groovy does more than just ease traditional Java development: it brings modern programming features to the Java platform like closures, duck-typing, and metaprogramming.
In this new book, you'll find code examples that you can use in your projects right away along with a discussion about how and why the solution works. Focusing on what's useful and tricky, Groovy 2 Cookbook offers a wealth of useful code for all Java and Groovy programmers, not just advanced practitioners.
Groovy 2 Cookbook contains a vast number of recipes covering many facets of today's programming landscape. From language-specific topics such as closures and metaprogramming, to more advanced applications of Groovy flexibility such as DSL and testing techniques, this book gives you quick solutions to everyday problems.
The recipes in this book start from the basics of installing Groovy and running your first scripts and continue with progressively more advanced examples that will help you to take advantage of the language's amazing features.
Packed with hundreds of tried-and-true Groovy recipes, Groovy 2 Cookbook includes code segments covering many specialized APIs to work with files and collections, manipulate XML, work with REST services and JSON, create asynchronous tasks, and more. But Groovy does more than just ease traditional Java development: it brings modern programming features to the Java platform like closures, duck-typing, and metaprogramming.
In this new book, you'll find code examples that you can use in your projects right away along with a discussion about how and why the solution works. Focusing on what's useful and tricky, Groovy 2 Cookbook offers a wealth of useful code for all Java and Groovy programmers, not just advanced practitioners.
- Groovy 2 Cookbook
- Table of Contents
- Groovy 2 Cookbook
- Credits
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- Preface
- The Groovy language
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 1. Getting Started with Groovy
- Introduction
- Installing Groovy on Windows
- Getting ready
- How to do it
- Theres more...
- Installing Groovy on Linux and OS X
- How to do it...
- How it works...
- There's more...
- See also
- Executing Groovy code from the command line
- How to do it...
- How it works...
- There's more...
- See also
- Using Groovy as a command-line text file editor
- How to do it...
- How it works...
- There's more...
- See also
- Using Groovy to start a server on the command line
- How to do it...
- See also
- Running Groovy with invokedynamic support
- Getting ready
- How to do it...
- There's more...
- See also
- Building Groovy from source
- Getting ready
- How to do it...
- How it works...
- Managing multiple Groovy installations on Linux
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using groovysh to try out Groovy commands
- How to do it...
- How it works...
- There's more...
- Starting groovyConsole to execute Groovy snippets
- How to do it...
- There's more...
- Configuring Groovy in Eclipse
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Configuring Groovy in IntelliJ IDEA
- Getting ready
- How to do it...
- There's more...
- 2. Using Groovy Ecosystem
- Introduction
- Using Java classes from Groovy
- How to do it...
- How it works...
- There's more...
- See also
- Embedding Groovy into Java
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Compiling Groovy code
- Getting ready
- How to do it...
- How it works...
- See also
- Simplifying dependency management with Grape
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Integrating Groovy into the build process using Ant
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Integrating Groovy into the build process using Maven
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Integrating Groovy into the build process using Gradle
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Generating documentation for Groovy code
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Checking Groovy code's quality with CodeNarc
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- 3. Using Groovy Language Features
- Introduction
- Searching strings with regular expressions
- Getting ready
- How to do it...
- There's more...
- See also
- Writing less verbose Java Beans with Groovy Beans
- Getting ready
- How to do it...
- How it works...
- There's more...
- Inheriting constructors in Groovy classes
- How to do it...
- How it works...
- Adding the cloning functionality to Groovy Beans
- How to do it...
- How it works...
- There's more...
- Defining code as data in Groovy
- Getting ready
- How to do it...
- There's more...
- Defining data structures as code in Groovy
- Getting ready
- How to do it...
- How it works...
- See also
- Implementing multiple inheritance in Groovy
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Adding a functionality to the existing Java/Groovy classes
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Defining type-checking rules for dynamic code
- Getting ready
- How to do it...
- How it works...
- There's more...
- Adding automatic logging to Groovy classes
- How to do it...
- How it works...
- There's more...
- See also
- 4. Working with Files in Groovy
- Introduction
- Reading from a file
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Reading a text file line by line
- Getting ready
- How to do it...
- There's more...
- See also
- Processing every word in a text file
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Writing to a file
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Replacing tabs with spaces in a text file
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Filtering a text file's content
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Deleting a file or directory
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Walking through a directory recursively
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Searching for files
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Changing file attributes on Windows
- Getting ready
- How to do it...
- How it works...
- There's more...
- Reading data from a ZIP file
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Reading an Excel file
- Getting ready
- How to do it...
- How it works...
- See also
- Extracting data from a PDF
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- 5. Working with XML in Groovy
- Introduction
- Reading XML using XmlSlurper
- Getting ready
- How to do it...
- How it works...
- See also
- Reading XML using XmlParser
- How to do it...
- How it works...
- See also
- Reading XML content with namespaces
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Searching in XML with GPath
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Searching in XML with XPath
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Constructing XML content
- How to do it...
- How it works...
- There's more...
- See also
- Modifying XML content
- Getting ready
- How to do it...
- How it works...
- See also
- Sorting XML nodes
- How to do it...
- How it works...
- There's more...
- See also
- Serializing Groovy Beans to XML
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- 6. Working with JSON in Groovy
- Introduction
- Parsing JSON messages with JsonSlurper
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Constructing JSON messages with JsonBuilder
- How to do it...
- How it works...
- See also
- Modifying JSON messages
- How to do it...
- How it works...
- See also
- Validating JSON messages
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Converting JSON message to XML
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Converting JSON message to Groovy Bean
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using JSON to configure your scripts
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- 7. Working with Databases in Groovy
- Introduction
- Creating a database table
- Getting ready
- How to do it...
- How it works...
- See also
- Connecting to an SQL database
- Getting ready
- How to do it...
- How it works...
- See also
- Querying an SQL database
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Modifying data in an SQL database
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Calling a stored procedure
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Reading BLOB/CLOB from a database
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Building a simple ORM framework
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using Groovy to access Redis
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using Groovy to access MongoDB
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using Groovy to access Apache Cassandra
- Getting ready
- How to do it...
- How it works...
- See also
- 8. Working with Web Services in Groovy
- Introduction
- Downloading content from the Internet
- How to do it...
- How it works...
- There's more...
- See also
- Executing an HTTP GET request
- How to do it...
- How it works...
- There's more...
- See also
- Executing an HTTP POST request
- How to do it...
- How it works...
- There's more...
- See also
- Constructing and modifying complex URLs
- How to do it...
- How it works...
- See also
- Issuing a REST request and parsing a response
- Getting ready
- How to do it...
- How it works...
- See also
- Issuing a SOAP request and parsing a response
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Consuming RSS and Atom feeds
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using basic authentication for web service security
- How to do it...
- How it works...
- See also
- Using OAuth for web service security
- Getting ready
- How to do it...
- How it works...
- See also
- 9. Metaprogramming and DSLs in Groovy
- Introduction
- Querying methods and properties
- Getting ready
- How to do it...
- How it works...
- See also
- Dynamically extending classes with new methods
- How to do it...
- How it works...
- There's more...
- See also
- Overriding methods dynamically
- Getting ready
- How to do it...
- How it works...
- Adding performance logging to methods
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Adding a caching functionality around methods
- Getting ready
- How to do it...
- How it works...
- See also
- Adding transparent imports to a script
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- DSL for executing commands over SSH
- Getting ready
- How to do it...
- How it works...
- See also
- DSL for generating reports from logfiles
- Getting ready
- How to do it...
- How it works...
- There's more...
- 10. Concurrent Programming in Groovy
- Introduction
- Processing collections concurrently
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Downloading files concurrently
- Getting ready
- How to do it...
- How it works...
- See also
- Splitting a large task into smaller parallel jobs
- How to do it...
- How it works...
- See also
- Running tasks in parallel and asynchronously
- Getting ready
- How to do it...
- How it works...
- See also
- Using actors to build message-based concurrency
- How to do it...
- How it works...
- See also
- Using STM to atomically update fields
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using dataflow variables for lazy evaluation
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Index
- Title: Groovy 2 Cookbook. Java and Groovy go together like ham and eggs, and this book is a great opportunity to learn how to exploit Groovy 2 to the full. Packed with recipes, both intermediate and advanced, it's a great way to speed up and modernize your programming
- Author: Luciano Fiandesio, Andrey Adamovich, Andrey Adamovich And Luciano Fiandesio
- Original title: Groovy 2 Cookbook. Java and Groovy go together like ham and eggs, and this book is a great opportunity to learn how to exploit Groovy 2 to the full. Packed with recipes, both intermediate and advanced, it's a great way to speed up and modernize your programming.
- ISBN: 9781849519373, 9781849519373
- Date of issue: 2013-10-22
- Format: Ebook
- Item ID: e_3cy4
- Publisher: Packt Publishing