News Ticker

Chapter 6: Factory Pattern

In this chapter we discuss what the factory pattern is and why you need it.

How to implement the various flavours of the factory pattern: the factory method and the abstract factory and how to implement the factory pattern in Java EE using the @Producers and @Inject annotations.

We finish by discussing how to create custom annotations and how to use the @Qualifier annotation to disambiguate concrete implementations.

Professional Java EE Design Patterns

Leave a Reply

%d bloggers like this: