Re: Is a static method sufficient to call it factory?



f.vivoli@xxxxxxxxx wrote:

Talking about factories why someone propose the way

Factory.getInstance().createClass(aType);

instead of simply

Factory.createClass(aType);

Why not define createClass as

    public static AProduct createClass(AType aType) {
        return getInstance().createClass0(aType);
    }

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.