A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Dec 27, 2004
Jan 16, 2005 23:58:00
pls tell about what is mean by factory methods...
what is purpose...
give me some example regarding Factory methods
Joined: Oct 23, 2002
Jan 17, 2005 04:25:00
Factory method is one of the Gang of Four's creational
. The purpose of the pattern is to define an interface for creating objects - but let the subclasses decide wich class to instantiate.
Take a look at
for some source code.
If you need more, then try to ask google - you'll get plenty of hits.
Joined: Jan 18, 2005
Jan 18, 2005 10:41:00
A JavaBean stores information.
A FactoryBean works with a JavaBean and contains the CRUD (create, read, update, and delete) methods and
The good part about FactoryBeans is that they keep your JavaBeans from being cluttered up with CRUD methods and JDBC code.
The bad part about FactoryBeans is that you have twice as many classes.
If you are not using separate FactoryBeans now, you probably have all the JDBC, and CRUD methods in your one JavaBean right now.
There's no place like 127.0.0.1
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Facatory Methods
advantages of factory methods
What is a Factory method please explain with use of such methods
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015