Relative Content

Tag Archive for decorator

Decorator Pattern Java

This is an object-oriented design question that is specific to Spring Boot. I’m extending a Spring Boot application that has an interface that is being extended and used inside another service. The interface uses dependency injection to choose the implementation. I don’t want to change that. I think the inheritance design is nice for Spring Boot, but the interface does not give me the necessary methods for my implementation. Do I am thinking the Decorator Pattern, and mixing in another interface. The interface to be extended is…