Re: Is a static method sufficient to call it factory?
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 16:30:00 +0100
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/ .
- References:
- Is a static method sufficient to call it factory?
- From: f . vivoli
- Is a static method sufficient to call it factory?
- Prev by Date: javascript
- Next by Date: Logging Strategy/best practice
- Previous by thread: Re: Is a static method sufficient to call it factory?
- Next by thread: Re: Is a static method sufficient to call it factory?
- Index(es):