更新时间:2021-07-23 16:55:40
封面
Title Page
Copyright and Credits
Java EE 8 Design Patterns and Best Practices
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the authors
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Introduction to Design Patterns
Explaining design patterns
Explaining the Gang of Four design patterns
The catalog of Gang of Four design patterns
Understanding the advantages of design patterns
Understanding the basic design patterns of the Java world
Explaining Singleton
Explaining Abstract Factory
Explaining Facade
Explaining Iterator
Explaining Proxy
Explaining enterprise patterns
Defining the difference between design patterns and enterprise patterns
Summary
Presentation Patterns
Explaining the presentation tier
Explaining intercepting filter pattern
Implementing the intercepting filter pattern using Java EE 8
Implementing LogAccessFilter
Implementing LogBrowserFilter
Deciding filter mapping
Explaining the FrontController pattern
Implementing FrontController
Implementing the commands
The application controller pattern
Implementing DownloadFrontController
Implementing DownloadApplicationController
Implementing commands
The difference between the application controller and front controller patterns
Business Patterns
Understanding the business tier
Explaining the Business Delegate pattern
Client tier presentation tier and business tier
Layers
Tiers
The classic Business Delegate pattern scenario
The benefits of the Business Delegate pattern
Business Delegate – obsolete or not
Explaining the Session Façade pattern
Benefits of Session Façade
Implementing the Session Façade pattern in JEE
The classic Session Façade pattern scenario
Implementing the Session Façade pattern
Explaining the business-object pattern
Applications with complex business rules
Motivation for using the business-object pattern
Benefits of business-object pattern usage
Implementing the business-object pattern
Integration Patterns
Explaining the concept of the integration tier
Explaining the concept of the data-access object pattern
Implementing the data-access object pattern
Implementing the entity with JPA
Implementing DAO
Explaining the concept of the domain-store pattern
Implementing the domain-store pattern
Implementing the PersistenceManagerFactory class
Implementing the PersistenceManager class
Implementing the EmployeeStoreManager class
Implementing the StageManager interface
Implementing the TransactionFactory class
Implementing the Transaction class
Implementing the EmployeeBusiness class
Explaining the concept of the service-activator pattern
Java Message Service (JMS)
EJB asynchronous methods
Asynchronous events – producers and observers
Implementing the service-activator pattern
Implementing sending and receiving messages with JMS
Implementing the EJB asynchronous methods
Implementing asynchronous events – producers and observers
Aspect-Oriented Programming and Design Patterns
Aspect-oriented programming
Compile-time versus run-time AOP
AOP in JEE scenario – the interceptor
A brief word about CDI and beans