Misha Ver wrote:
long meng wrote:why it tried to connect 127.0.0.1:8009, while i set wk.ajp13.host=83.10.31.20?
Most likely you have some other settings somewhere
James Clark wrote:You are missing the point of "not changing the client object code."
The classes of client objects which use the "factory method" do not need to be renamed, recompiled, newed or whatever.
Keep in mind that object-oriented design patterns are typically for solving significant issues with large systems. It might be hard to learn or understand if using "small" examples with only a few classes. If your implementation of Factory Method saves you time because you do not need to modify 20 to 50 classes, then this is a significant benefit.