design patterns
-
decorator
Java EE 6 Decorators advanced usage
The example we’ll use is a Social media feed processor. So I have created an interface:  public interface SocialFeedProcessor…
Read More » -
decorator
Decorating classes at injection time with Java EE 6
Let’s say you have a ticket service that lets you order tickets for a certain event. The TicketService handles the…
Read More » -
strategy
Implement a shopping cart using the Strategy Pattern
First a definition: in the simplest terms, you can define the Strategy Pattern as telling an object to do a…
Read More »