limitations of Factory Pattern

Hi,

Can any of u tell me the limitations of factory pattern.

[73 byte] By [NoNewNamea] at [2007-11-27 10:46:59]
# 1

Please first tell us in your own words what's the factory pattern.

BalusCa at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

Factory Pattern is creational pattern that creates object out of several sub classes.

Factory Pattern is used in a condition where we don't have clear idea about which class object should be created.

NoNewNamea at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

It can't be used to inflate a flat tyre

georgemca at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 4

Thanks,

Please can you explain with example..

Thanks once again.

NoNewNamea at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 5

> Thanks,

>

> Please can you explain with example..

>

> Thanks once again.

An example would be if you're driving down the road in a pick-up truck and all of a sudden the tire on the passenger sides deflates. Even though, you have an industrial strength Factory pattern in the cab, you will not be able to inflate the tire with it. This is a significant limitation of the Factory pattern.

GhostRadioTwoa at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 6

> > Thanks,

> >

> > Please can you explain with example..

> >

> > Thanks once again.

>

> An example would be if you're driving down the road

> in a pick-up truck and all of a sudden the tire on

> the passenger sides deflates. Even though, you have

> an industrial strength Factory pattern in the cab,

> you will not be able to inflate the tire with it.

> This is a significant limitation of the Factory

> pattern.

This is true. It happened to me the other day. The pattern completely failed to re-inflate the tyre. If anything, it made it worse

georgemca at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 7

Has anyone come across a resource that outlines the steps to hosting a web server on the WWW? Or, if anyone can highlight them here, it would be greatly appreciated.

Basically, we want to host our own application with our own machines. And map a WWW URL to the web servers.

This is to support an application consisting of two nodes for Sun App Server and two nodes for SQL Server instances.

Besides registering a domain name, what else is there? How do you get the machines connected to a network of the WWW? Need a router?

Thanks.

GhostRadioTwoa at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 8

GRT: you are a bit off topic. Basically, you need a bunch of Web Design Patterns ...

OP: The factory pattern fails, e.g., for tenements, sports facilities, shops, etc. It's all a matter of shape. But sometimes, using a facade may help turning it into one of the above.

stefan.schulza at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 9

Has anyone come across a resource that outlines the steps to hosting a web server on the WWW? Or, if anyone can highlight them here, it would be greatly appreciated.

Basically, we want to host our own application with our own machines. And map a WWW URL to the web servers.

This is to support an application consisting of two nodes for Sun App Server and two nodes for SQL Server instances.

1. Need ISP account

2. Software, hardware, network expenses

3. NIC card

4. Router with firewall (Hardware)

4.a. Firewall software on nodes with app servers

5. Static-free location in cool environment

5.b. fans/air conditioners

6. LAN

7. External power supply

8. Backup storage server with disk space for 6 months of nightly backups

Besides registering a domain name, what else is there?

In regards to NIC card, any preferences for using with Sun App server?

Thanks

GhostRadioTwoa at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 10

> Has anyone come across a resource that outlines the

> steps to hosting a web server on the WWW? Or, if

> anyone can highlight them here, it would be greatly

> appreciated.

There are any number of security books that document how to setup up linux and apache securely.

Other than than you should probably hire a admin consultant if you need physical layout help.

jschella at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 11

> Has anyone come across a resource that outlines the

> steps to hosting a web server on the WWW?

Why hijack this thread? Why not start your own?

jverda at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 12

> There are any number of security books that document

> how to setup up linux and apache securely.

Thanks. Initially, we are looking at running Sun Application Server on a Windows OS. I'm sure there are books for this too.

> Other than than you should probably hire a admin

> consultant if you need physical layout help.

This is a good idea.

We did come accross an article that sort of provides the outline of the mechanics of hosting an application on the WWW. For anyone that is interested it can be found at:

http://www.webhostgear.com/390.html

GhostRadioTwoa at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 13

> Why hijack this thread? Why not start your own?

Which Developer forum would you have chosen to start a thread on this subject?

Are there any forums for hosting Java-based application servers on the WWW?

GhostRadioTwoa at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 14

> > Why hijack this thread? Why not start your own?

>

> Which Developer forum would you have chosen to start

> a thread on this subject?

Not really a developer issue, is it? Possibly in http://forum.java.sun.com/forum.jspa?forumID=550 the Set up And Deploy forum

> Are there any forums for hosting Java-based

> application servers on the WWW?

Probably. Don't know where, though.

georgemca at 2007-7-28 20:22:14 > top of Java-index,Other Topics,Patterns & OO Design...
# 15

> > Why hijack this thread? Why not start your own?

>

> Which Developer forum would you have chosen to start

> a thread on this subject?

That is an answer but not to the question asked.

Regardless of the forum choosen, you still hijacked this thread.

And there isn't really a forum.

jschella at 2007-7-28 20:22:18 > top of Java-index,Other Topics,Patterns & OO Design...
# 16

> > > Why hijack this thread? Why not start your own?

> >

> > Which Developer forum would you have chosen to

> > start a thread on this subject?

>

> That is an answer but not to the question asked.

>

> Regardless of the forum chosen, you still hijacked

> this thread.

>

>

> And there isn't really a forum.

As you mention, and ironically answer your question, there isn't really a forum.*

* DISCLAIMER: Silly threads may be randomly "hijacked" at user's discretion.

GhostRadioTwoa at 2007-7-28 20:22:18 > top of Java-index,Other Topics,Patterns & OO Design...
# 17

> > > > Why hijack this thread? Why not start your

> own?

> > >

> > > Which Developer forum would you have chosen to

> > > start a thread on this subject?

> >

> > That is an answer but not to the question asked.

> >

> > Regardless of the forum chosen, you still hijacked

> > this thread.

> >

> >

> > And there isn't really a forum.

>

> As you mention, and ironically answer your question,

> there isn't really a forum.*

It wasn't my question and that wasn't the answer.

>

>

> * DISCLAIMER: Silly threads may be randomly

> "hijacked" at user's discretion.

That however was the answer.

jschella at 2007-7-28 20:22:18 > top of Java-index,Other Topics,Patterns & OO Design...
# 18

The most important things is that we shared our concern with the forum and received valuable feedback, such as employing an admin consultant and checking for books that document security issues with web server configuration and deployment.

Thanks.

GhostRadioTwoa at 2007-7-28 20:22:18 > top of Java-index,Other Topics,Patterns & OO Design...