A simple question
From: ShadowMan (shadman_at_despammed.com)
Date: 10/27/04
- Next message: Robert C. Martin: "Re: XP Requirement Analysis?"
- Previous message: Robert C. Martin: "Re: XP Requirement Analysis?"
- Next in thread: Cristiano Sadun: "Re: A simple question"
- Reply: Cristiano Sadun: "Re: A simple question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Oct 2004 12:37:11 +0200
Hi all
I need a ConnectionBroker class that
- is 'initialized' at application startup
- it may dispatch many types of connection according to a passed parameter
- should be visible from both EJBs and other classes
At moment I have a class with static methods and fields; this class is
initialized at startup-time.
Is it better to switch to a Singleton Pattern instead of static methods?!
Generally, wich kind of pattern should I use when I need 'initialized' or
'prepared' objects?!
Is it better to pass every time the configuration?!
thanks
-- ShadowMan
- Next message: Robert C. Martin: "Re: XP Requirement Analysis?"
- Previous message: Robert C. Martin: "Re: XP Requirement Analysis?"
- Next in thread: Cristiano Sadun: "Re: A simple question"
- Reply: Cristiano Sadun: "Re: A simple question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]