eBooks-it.org Logo
eBooks-IT.org Inner Image

Scripting in Java

Integrating with Groovy and JavaScript

Scripting in Java Image

Book Details:

Series: Apress
Author:Kishori Sharan
Published:Dec 04 2014
Posted:Jan 28 2015
Book format:PDF
Book size:3.43 MB

Book Description:

Scripting in Java teaches you how to use the Java Scripting API and JavaScript to execute scripts and take advantage of the features of a scripting language while developing Java applications. The book also covers topics that enable scripting languages to take advantage of Java features and the Java class library, including the new Java Collections and JavaFX 8 APIs. Most of the examples in this book use JavaScript on the Nashorn engine. Author Kishori Sharan will show you scripts in JavaScript to demonstrate its power and use in your Java applications. Some of the examples use the jrunscript and jjs command-line tools. Furthermore, debugging is discussed to equip you for situations when or if you encounter any issues with this kind of Java scripting. After reading and using this book, you will have most of what you need to do scripting in Java. What youll learnHow to execute scripts and pass parameters to scriptsWhat is the Java Scripting API as found in the new Java 8How to write scripts in Nashorn and invoke procedures in scriptsHow to use compiled scripts and use Java in scripting languagesHow to use the new Java APIs, including JavaFX 8 and Collections in NashornHow to implement a script engineHow to use the jrunscript and jjs command-line toolsWho this book is for This book is for those who have some experience with Java. Although it is not required, it would be helpful to have a basic knowledge of a scripting language before reading this book. Table of ContentsChapter 1: Getting StartedChapter 2: Executing ScriptsChapter 3: Passing Parameters to ScriptsChapter 4: Writing Scripts in NashornChapter 5: Procedures and Compiled ScriptsChapter 6: Using Java in Scripting LanguagesChapter 7: CollectionsChapter 8: Implementing a Script EngineChapter 9: The jrunscript Command-Line ShellChapter 10: The jjs Command Line ToolChapter 11: Using JavaFX in NashornChapter 12: Java APIs for NashornChapter 13: Debugging, Tracing, and Profiling Scripts

Download Link:

Related Books:

Java Enterprise Design Patterns

Patterns in Java Volume 3
Java Enterprise Design Patterns Image
A how-to guide for Java programmers who want to use design patterns when developing real-world enterprise applicationsThis practical book explores the subject of design patterns, or patterns that occur in the design phase of a project's life cycle. With an emphasis on Java for the enterprise, Mark Grand guides Java programmers on how to apply traditional and new patterns when designing a large enterprise application. The author clearly explains how existing patterns work with the new enterprise design patterns and demonstrates through case studies how to use design patterns in the real world. Features include over 50 design patterns, each mapped out by UML, plus an overview of UML 1.4 and how it fits in with the different phases of a project's life c...

Functional Programming in Java

Harnessing the Power Of Java 8 Lambda Expressions
Functional Programming in Java Image
Intermediate level, for programmers fairly familiar with Java, but new to the functional style of programming and lambda expressions.Get ready to program in a whole new way. Functional Programming in Java will help you quickly get on top of the new, essential Java 8 language features and the functional style that will change and improve your code. This short, targeted book will help you make the paradigm shift from the old imperative way to a less error-prone, more elegant, and concise coding style that's also a breeze to parallelize. You'll explore the syntax and semantics of lambda expressions, method and constructor references, and functional interfaces. You'll design and write applications better using the new standards in Java 8 and the JDK. Lam...

Thinking in Java

The Definitive Introduction to Object-Oriented Programming in the Language of the World-Wide Web
Thinking in Java Image
3rd Edition
Thinking in Java, Third Edition is the much-anticipated revision of Bruce Eckel's best-selling introduction to Java. In Thinking in Java, 3/e, Bruce Eckel provides complete integration of JDK 1.4 technologies to his award winning 'Thinking in' presentation. Eckel introduces all the basics of objects as Java uses them, then walks carefully through the fundamental concepts underlying all Java programming -- including program flow, initialization and cleanup, implementation hiding, reusing classes, and polymorphism. Using extensive, to-the-point examples, he introduces exception handling, Java I/O, run-time type identification, and passing and returning o...

2007 - 2021 © eBooks-IT.org