Chapter 8: Aspect Orientated Programming (Interceptors)

In this chapter we introduce you to aspect‐oriented programming and Aspects in Java. We show how to use servlet filters as aspects.

We continue by discussing Aspects in Java EE and interceptors and finish by talking about EJB interceptors versus CDI interceptors.

Professional Java EE Design Patterns

Advertisements
Chapter 8: Aspect Orientated Programming (Interceptors)

Chapter 11: Observer Pattern

In this chapter we show how to implement the observer pattern in Java SE and how the observer pattern works in the real world.

We then show how to implement the observer pattern in Java EE by using the @Observes annotation and Event firing.

We finish by showing how to use qualifiers to gain fine‐grain control over observers and how to implement transaction‐sensitive observers and rollbacks.

Professional Java EE Design Patterns

Chapter 11: Observer Pattern

Chapter 12: Data Access Pattern

In this chapter we start with a discussion regarding the origins of the data access pattern and examine the related data transfer object.

We show how the data access object and factory pattern can work together. We continue with an introduction to the Java persistence API and object relational mapping.

We show how to improve a simple implementation of a data access object can be improved using generics

We finish with a discussion regarding the role of data access objects in modern Java EE applications.

Professional Java EE Design Patterns

Chapter 12: Data Access Pattern

Chapter 13: RESTfull Web Service

In this chapter we discuss what REST is all about and what it does by describing the six constraints of REST.

We introduce the Richardson Maturity Model of a REST API and show how to design a RESTful API.

With a comprehensive example we demonstrate REST in Action and how to implement a RESTful API in a Java EE environment.

We finish we a discussion of HATEOAS which exists at the highest level in the Richardson Maturity Model.

Professional Java EE Design Patterns

Chapter 13: RESTfull Web Service

Chapter 14: Model View Controller Pattern

In this chapter we introduce you to the MVC pattern and talk about where it came from?

We show you how to implement the MVC pattern using compound patterns such as Action pattern and the Factory pattern.

We continue by showing the implementation of the MVC pattern in Java EE and finish with a discussion of when and where to use the MVC pattern.

Professional Java EE Design Patterns

Chapter 14: Model View Controller Pattern