Ensuring single instance use during instantiation. Every so often in development, a business rule dictates that instantiation of a certain… Read more Design Patterns: Singleton
Category: web
Design Patterns: Service Locator
Completing the IoC Design Pattern. In my Design Patterns: Inversion of Control article, I illustrated how to decouple classes from… Read more Design Patterns: Service Locator
Design Patterns: Inversion of Control
Providing flexibility into the domain by abstracting implementation. Using abstraction between concrete and class implementation, avoid tightly-coupled classes, which leads… Read more Design Patterns: Inversion of Control
Design Patterns: Factory
Providing flexible object-instantiation. In this example, I’ll illustrate a method by which a SalesAssociate object may be instantiated that is… Read more Design Patterns: Factory
Design Patterns: Adapter
Exposing class behavior from another class. Sometimes you might need to access and use functionality defined from one class from… Read more Design Patterns: Adapter