FactoryPattern: Difference between revisions
(New page: =Factory Pattern= Instead of calling <code>new X()</code> in java code you use XFactory.get(), so you have a decoupling of the actual type, which is good for: * testing * different enviro...) |
No edit summary |
||
| Line 1: | Line 1: | ||
=Factory Pattern= | =Factory Pattern= | ||
Instead of calling <code>new X()</code> in java code you use XFactory.get(), so you have a decoupling of the actual type, which is good for: | Instead of calling <code>new X()</code> in java code you use <code>XFactory.get()</code>, so you have a decoupling of the actual type, which is good for: | ||
* testing | * testing | ||
* different environments | * different environments | ||
Revision as of 13:13, 2 February 2010
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