FactoryPattern
Factory Pattern
Instead of calling new X() in java code you use XFactory.get(), so you have a decoupling of the actual type, which is good for:
- testing
- different environments
Instead of calling new X() in java code you use XFactory.get(), so you have a decoupling of the actual type, which is good for: