| |
|
|
|
|
|
|
|
|
1. |
Record Nr. |
UNINA9910458020603321 |
|
|
Autore |
Alexandre Thomas |
|
|
Titolo |
Scala for Java developers : build reactive, scalable applications and integrate Java code with the power of Scala / / Thomas Alexandre ; cover image by Grégoire Alexandre |
|
|
|
|
|
|
|
Pubbl/distr/stampa |
|
|
Birmingham, England : , : Packt Publishing, , 2014 |
|
©2014 |
|
|
|
|
|
|
|
|
|
ISBN |
|
|
|
|
|
|
Descrizione fisica |
|
1 online resource (282 p.) |
|
|
|
|
|
|
Collana |
|
Community Experience Distilled |
|
|
|
|
|
|
Disciplina |
|
|
|
|
|
|
Soggetti |
|
Scala (Computer program language) |
Multiparadigm programming (Computer science) |
Electronic books. |
|
|
|
|
|
|
|
|
Lingua di pubblicazione |
|
|
|
|
|
|
Formato |
Materiale a stampa |
|
|
|
|
|
Livello bibliografico |
Monografia |
|
|
|
|
|
Note generali |
|
|
|
|
|
|
Nota di contenuto |
|
Cover; Copyright; Credits; Foreword; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Preface; Chapter 1: Programming Interactively within Your Project; Advantages of using Scala for Java projects; More concise and expressive; Increased productivity; Natural evolution from Java; Better fit for asynchronous and concurrent code; Learning Scala through the REPL; Declaring val/var variables; Defining classes; Explaining case classes; Operations on collections; Transforming collections containing primitive types; Collections of more complex objects; Filter and partition |
Dealing with tuplesIntroducing Map; Introducing the Option construct; A glimpse at pattern matching; The map method; Looking at String Interpolation; The groupBy method; The foldLeft method; Summary; Chapter 2: Code Integration; Creating a REST API from an existing database; The sample database; Setting up a Maven project; Creating JPA entities and REST web service; Running and testing the project; Adding a test in Scala; Setting up Scala within a Java Maven project; Scala and Java collaboration; Converting between collection types; JavaBean-style properties; Scala and Java object orientation |
Scala traits as enhanced Java interfacesDeclaring objects; Introducing companion objects; Handling exceptions; Differences in style between |
|
|
|
|
|
|
|
|
|
|
|
Java and Scala code; Adjusting the code layout; Naming conventions; Summary; Chapter 3: Understanding the Scala Ecosystem; Inheriting Java Integrated Development Environments (IDEs); Building with Simple Build Tool (SBT); Getting started with SBT; Creating a sample project; Importing the project in Eclipse, IntelliJ IDEA, and NetBeans; Creating a web application that runs on a servlet container; Using sbt-assembly to build a single .jar archive |
Formatting code with ScalariformExperimenting with Scala Worksheets; Working with HTTP; Scala's for comprehension; Taking advantage of Typesafe Activator; Creating an application based on activator templates; The REPL as a scripting engine; Summary; Chapter 4: Testing Tools; Writing tests with ScalaTest; BDD-style testing; Functional testing; Mocking with ScalaMock; Testing with ScalaCheck; Summary; Chapter 5: Getting Started with the Play Framework; Getting started with the classic Play distribution; Getting started with the Typesafe Activator; Architecture of a Play application |
Visualizing the framework stackExploring the request-response lifecycle; Handling a request in the controller; Rendering the view; Playing with authentication; Practical tips when using Play; Debugging with Play; Dealing with version control; Summary; Chapter 6: Database Access and the Future of ORM; Integrating an existing ORM - Hibernate and JPA; Making JPA available in Scala; Dealing with persistence in the Play Framework; A simple example using Anorm; Replacing ORM; Learning about Slick; Scaffolding a Play application; Importing test data; Visualizing the database in the H2-browser |
Exploring the code behind the app generation |
|
|
|
|
|
|
Sommario/riassunto |
|
This step-by-step guide is full of easy-to-follow code taken from real-world examples explaining the migration and integration of Scala in a Java project. If you are a Java developer or a Java architect, working in Java EE-based solutions and want to start using Scala in your daily programming, this book is ideal for you. This book will get you up and running quickly by adopting a pragmatic approach with real-world code samples. No prior knowledge of Scala is required. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2. |
Record Nr. |
UNINA9910777955903321 |
|
|
Autore |
Hussain A. Imtiaz <1953-> |
|
|
Titolo |
North American homeland security [[electronic resource] ] : back to bilateralism? / / Imtiaz Hussain, Satya R. Pattnayak, and Anil Hira |
|
|
|
|
|
|
|
Pubbl/distr/stampa |
|
|
Westport, Conn. : , : Praeger Security International, , 2008 |
|
New York : , : Bloomsbury Publishing (US), , 2024 |
|
|
|
|
|
|
|
|
|
ISBN |
|
979-84-00-69199-7 |
1-282-42096-8 |
9786612420962 |
0-313-35687-4 |
|
|
|
|
|
|
|
|
Descrizione fisica |
|
1 online resource (345 p.) |
|
|
|
|
|
|
Collana |
|
|
|
|
|
|
Altri autori (Persone) |
|
HiraAnil |
PattnayakSatya R |
|
|
|
|
|
|
|
|
Disciplina |
|
|
|
|
|
|
Soggetti |
|
Free trade - North America |
National security - Economic aspects - North America |
National security - United States |
United States Defenses Economic aspects |
|
|
|
|
|
|
|
|
Lingua di pubblicazione |
|
|
|
|
|
|
Formato |
Materiale a stampa |
|
|
|
|
|
Livello bibliografico |
Monografia |
|
|
|
|
|
Note generali |
|
Description based upon print version of record. |
|
|
|
|
|
|
Nota di bibliografia |
|
Includes bibliographical references and index. |
|
|
|
|
|
|
Nota di contenuto |
|
Contents; Preface; Abbreviations; 1 North America's 9/11 Dilemma: Puzzles, Payoffs, and the Institutional/Procedural Matrix; 2 U.S. Homeland Security and Post-9/11 North American Integration: The Homeland Era; 3 Asymmetry Squeezing Out Trilateralism? Canadian Ambivalence on U.S. Strategic Primacy; 4 Mexico and Homeland Security: Revolving Doors and Transient Interests; 5 Canada-U.S. Relations Since 9/11: Putting Humpty-Dumpty Back Together?; 6 Post-9/11 Mexico-U.S. Relations: Green Pastures, Rough Patches, Muddled Outcomes; 7 Canada, Mexico, and Homeland Security: Oddballs |
8 9/11, Theory, and the North America Idea: Trilateralism on Trial?9 Conclusions: North American Tango-Only For Two; Notes; Appendix: Investigative Questions; Bibliography; Index |
|
|
|
|
|
|
|
|
Sommario/riassunto |
|
Did 9/11 revive a North American guns-butter trade-off? Established in the largest administrative overhaul since World War II, the Department |
|
|
|
|
|
|
|
|
|
|
of Homeland Security was charged with keeping the United States safe within a wider security community, but confronted the Washington Consensus-based Western Hemisphere free trade movement, beginning with the North American Free Trade Agreement (NAFTA) and extending to the Central American Free Trade Agreement (CAFTA) in 2003, to materialize a Free Trade Area of the Americas (FTAA) compact. Whether 9/11 restrictions impeded these trade-related thrusts or |
|
|
|
|
|
| |