shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Dean-123
which do you think is most important when design a website?
i recently designed a new website:mytino(you can search it by google)can you give me some advices?
thank you!
Hey thats a too general thing to answer and it would be a classic case of solution probleming where you have a solution and trying to find the problem where it can be applied. I would suggest get your context out and then see which is the most fitting situation and see if you really need it and then apply.
Dean-123's Avatar, Join Date: Jul 2007
Go4Expert Member
Quote:
Originally Posted by shabbir
Hey thats a too general thing to answer and it would be a classic case of solution probleming where you have a solution and trying to find the problem where it can be applied. I would suggest get your context out and then see which is the most fitting situation and see if you really need it and then apply.
thank you for your kindly suggestion,it's really useful!
ziad's Avatar, Join Date: Jul 2008
Newbie Member
Shabbir great article, thanks very much!

I have a question regarding the strategy pattern. I think I understand it correctly and see the benefit of using it but my question is how will the correct implementation of the interface be instantiated? Would you have to use one of the creational design patterns?

Thanks again.

Ziad
yah's Avatar, Join Date: Sep 2008
yah
Newbie Member
hai..
i'm new in Design pattern using Java..
actually i try to find any topic in design pattern to my PHD..
any suggestion from you?
TQ
rmahmood's Avatar, Join Date: Sep 2008
Newbie Member
Nice article with very simple examples.

It would be nice if you can share your knowledge to help me out.

I am working on an application where i have recorded ejb method calls with necessary information in XML files as they were called by j2ee client. Now i want to replay these recorded methods using Java reflection.

I am thinking about some design pattern that can be helpful. Important thing for me is
for every method being replayed i have to call ProcessBefore and ProcessAfter methods
to fix some contextual issues if there exist. It is not possible for me to know in advance
which methods will be recorded so that i can write concrete ProcessAfter and ProcessBefore for them.
Nikimathew's Avatar, Join Date: Sep 2008
Newbie Member
Design pattern is a widely accepted solution to a recurring design problem in OOP a design pattern describes how to structure classes to meet a given requirement provides a general blueprint to follow when implementing part of a program does not describe how to structure the entire application does not describe specific algorithms focuses on relationships between classes
----------------
Nikimathew

Last edited by shabbir; 25Sep2008 at 12:25.. Reason: Confine links to signatures only.
puviyarasan's Avatar, Join Date: Dec 2008
Newbie Member
It is really good article. Thank you very much.
annant's Avatar, Join Date: Dec 2008
Newbie Member
Can you pls provide me any good example of Abstract Factory pattern used in a project within database interaction. For example a project in Abstract factory pattern, which also has some database associated with it .
sanc.pec's Avatar, Join Date: Jan 2009
Newbie Member
Hi ,
It was a superb collection of DPs.. Really very good man.
I ahve one scenario in my project, like the project is now on LIVE. A sudden requiremnt from customer requires some 400 different objects to behave in a single way. Like he needs a single object called "DOCUMENT" for all those 400 objects !!

Object 1 ->
attr A
attr B

Object 2->
attr C
attr D

Now my DOCUMENT generic object should have
attr A
attr B

when he wants Object1

and similarly for Object 2 and other objects !!! What can be done ?????
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Confused. Is there 2 type of object or one and if 2 type of object like to behave like one then you could probably change the class 2 to have internal implementation taken from object 1.