Java – what is an interface based framework?
I'm reading effective Java and reading static factory methods to create objects Chapter 2, item 1 Do you have an advantage 3. The author mentioned like
I can't understand what an interface based framework is?
Solution
It might be helpful to rewrite it: an interface based framework is a framework that only allows users / clients lib to access interfaces and actually provides classes that implement these interfaces The advantage of this method is to give the implementer complete control of the implementation and provide a stable API for the client I recently encountered an example in which a client obtains xmlprocessor. XML from an API method Within the framework, the processor has three completely different implementations: domxmlprocessor, saxxmlprocessor and vtdxmlprocessor The details of each implementation have nothing to do with the customer and can be switched at any time