Kotlin for Enterprise Applications Using Java EE : Develop, Test, and Troubleshoot Enterprise Applications and Microservices with Kotlin and Java EE.
Kotlin came from the industry, not academia, with the aim to solve programmers' difficulties and operational challenges. This book is all about making Kotlin and Java EE work in unison to build enterprise-grade application. With Java EE API, Kotlin can be used to create services that are scalab...
Hovedforfatter: | |
---|---|
Format: | Licensed eBooks |
Sprog: | engelsk |
Udgivet: |
Birmingham :
Packt Publishing Ltd,
2018.
|
Online adgang: | https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1975948 |
Indholdsfortegnelse:
- Cover; Title Page; Copyright and Credits; Dedication; Foreword; Contributors; Acknowledgements; About Packt; Table of Contents; Preface; Chapter 1: Kotlin
- A First look; Technical requirements; Introduction to Kotlin; The history of Kotlin; Features of Kotlin; Getting started with Kotlin; Installing Kotlin; Installing Kotlin on Linux ; Installing Kotlin on Windows; Installing Kotlin on Mac; Compiling and running; A quick tour of Kotlin; Declaring variables; Data types in Kotlin; Warnings; Type inference; String templates; Multi-line String Literals; Expressions over statements; Functions
- Default argumentsNamed arguments; varargs and spread; The for loop; Iterating over a list; When clause; The nullable type; Lambda expressions in Kotlin; Extension functions; Classes in Kotlin; Constructors ; Static functions; Kotlin programming style and Syntax; Summary; Chapter 2: Kotlin
- The Game Changer; Technical requirements; Why Kotlin is the game changer; Interoperability with Java; Functional paradigms; Immutability; Null safety; Kotlin versus Java; Null safety issue; Arrays in Kotlin are invariant; Extension functions; No checked exceptions; Functional paradigms; Concise code
- Configuring Kotlin in the projectCreating a simple Kotlin project; Maven project; Configuring Kotlin in Eclipse; Working with coroutines; Coroutines in Kotlin; Using Kotlin with Java; Kotlin in an existing Java project; Java in a Kotlin project; Summary; Chapter 3: An Overview of Java EE and Kotlin; Technical requirements; Overview of Java EE; New features and enhancements in Java EE 8; Introduction to the Java EE architecture; Integrating Kotlin plugins; The all-open compiler plugin; Using the all-open plugin in Maven; Using the all-open plugin in Gradle; No-arg compiler plugin
- Using the no-org plugin in MavenUsing the no-org plugin in Gradle; The kotlin-spring compiler plugin; Using the kotlin-spring plugin in Maven; Using the kotlin-spring plugin in Gradle; Using the kotlin-spring plugin in CLI; JPA plugin; Using the kotlin-jpa plugin in Maven; Using the kotlin-jpa plugin in Gradle; Using the kotlin-jpa plugin in CLI; The SAM-with-receiver compiler plugin; Using the SAM-with-receiver plugin in Maven; Using the SAM-with-receiver plugin in Gradle; Using the SAM-with-receiver plugin in CLI; The Jackson plugin; Using the Jackson plugin in Maven
- Using the Jackson plugin in GradleKotlin and Servlets; Kotlin for server-side development; Servlets; The life cycle of a servlet; Creating a simple servlet application; Kotlin and EJB; An overview of EJBs; Advantages of EJBs; The EJB component model; Bean validation; Summary; Chapter 4: Kotlin with JSF and CDI; Technical requirements; Introduction to JSF; JSF architecture; The Benefits of using JSF; Developing our first JSF application; Kotlin and CDI; The Difference between EJB and CDI-managed beans; Injecting the beans; Producers; Qualifiers; Scopes; CDI and domain events; Defining an event