Is a static method sufficient to call it factory?
- From: f.vivoli@xxxxxxxxx
- Date: 28 Jul 2005 04:28:15 -0700
Hi everyone,
I've just a doubt...
Talking about factories why someone propose the way
Factory.getInstance().createClass(aType);
instead of simply
Factory.createClass(aType);
That is,
why the singleton?
In the end, is a class with a static method eligible to be an use of a
factory method pattern? It doesn't resemble the structure of the GOF
pattern, since it doesn't use subclassing...
Suppose that what createClass() method does is to instantiate a
concrete class
based on the parameter.
cheers,
Francesco
.
- Follow-Ups:
- Re: Is a static method sufficient to call it factory?
- From: Harald
- Re: Is a static method sufficient to call it factory?
- From: Andrew McDonagh
- Re: Is a static method sufficient to call it factory?
- From: Thomas Hawtin
- Re: Is a static method sufficient to call it factory?
- From: Thomas Weidenfeller
- Re: Is a static method sufficient to call it factory?
- From: Chris Smith
- Re: Is a static method sufficient to call it factory?
- From: Andrea Desole
- Re: Is a static method sufficient to call it factory?
- Prev by Date: Re: isErrorPage is not working in Tomcat 5.5 !
- Next by Date: Re: isErrorPage is not working in Tomcat 5.5 !
- Previous by thread: error trying to initialize the HPI library
- Next by thread: Re: Is a static method sufficient to call it factory?
- Index(es):
Relevant Pages
|
|