In a Java 8 / Spring 5 project:
Assume an Interface (e.g. IBase) with 3 concrete implementations (e.g. IBaseImplA, IBaseImplB, IBaseImplC) operating under a Service Locator Pattern.
Assume a set of classes (validators) that need to be executed to validate a request. They are loaded dynamically through the application.properties file.
Which is the best way to have a configurable subset of the aforementioned validators for each concrete implementation without violating the SOLID principles?
(PS> I have investigated the Rules Pattern for my case and it doesn't seem to apply.)
Aucun commentaire:
Enregistrer un commentaire