Java EE Revisits GoF Design Patterns
summary
Claims that Java EE already implements most GoF patterns and demos how to use them: shows @Singleton/@Startup/@PostConstruct for singletons with container-provided lazy or eager init and serialized access; @Produces and qualifiers as factory/producers with adjustable scopes; @Stateless with pooling as a facade (thread-safe, transactional) plus CDI events via Event.fire/@Observes (synchronous by default, CDI 2.0 adds async), decorators with @Decorator, JPA Entity/@Entity used as DAO/DTO with JAXB @XmlRootElement for serialization.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:55Design Patterns
- 3:35Singleton
- 10:50Benefits
- 12:55Abstract Factory
- 13:45String Factory
- 15:02Ambiguity
- 15:50Pros Cons
- 17:18Facade
- 21:52Stateless
- 27:05Decorator
- 28:22Java EE
- 30:35Observers
- 34:19ProsCons
- 40:17ModelController
- 43:27Entity
- 46:32DAO
- 49:03Example
- 49:39Details
- 52:34Entity Example
- 58:55DomainDriven Design
related talks
45mJava EE changes design pattern implementation
55mRevisiting Design Patterns After 20
01h 03mJava Design Patterns 2022
53mJava EE 8 and the Open Future of Java EE - What You Need to Know!
45mRevisiting Design Patterns after 20
02h 47mSpring Patterns for Grown-Ups
43mWho's afraid of the EJB?
47mHow to Structure Jakarta EE Applications for Productivity Without Bloat
