Decorator Pattern

Problem: The explosion of classes occurs because of N number of combinations for a product, for example, pizza or coffee, which leads to inconsistency in the code like maintainability, scalability, and readability and also requires to addition of more combinations on the requirement. This violates the open-closed principle. If you…

Continue reading

Spring AOP (Aspect Oriented Programming)

Problem: The problem is the tight coupling of different concerns (aspects) with the main business application code. Non-business features that are expected to be implemented or common business features that are scattered across multiple places in the application are called cross-cutting concerns (aspects). Tight coupling of code is hard to…

Continue reading