Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design Pattern - Factory and Abstract Factory
Message
De
03/01/2006 17:01:00
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
03/01/2006 16:35:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01082705
Message ID:
01082906
Vues:
17
>I wouldn't do that, because I'd rather have the oFactory handle the additional parameters and other possible hurdles of actual createobject() or newobject() code. I'd prefer the loWait=oFactory.create("tokennamehere")
>
>Since factory is such a lightweight class, you can instantiate it on the spot, in a local variable - then you won't have the datasession problem. Replace oFactory with loFactory in my examples, then.

So, to be consistent, I could do this everywhere?

m.loFactory = CreateObject(m.oApp.GetFactoryName())
m.loFactory.Create(m.cTokenName,m.cParameterList)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform