I think, right idea.
We are doing the same thing. We have a "App" object that can be accessed
globally to our application. this App object has everything like all
functions needed for our application, object factory, exception and
Application level costants with a method "getAppConstants".
we code like dsn = App.getAppConstants("DSN");
:)roy
On Tue, Nov 25, 2008 at 9:02 PM, Kevan Stannard <[EMAIL PROTECTED]>wrote:
>
> Currently we have our constants stored in a singleton
> ApplicationConstants object that is injected explicitly into whatever
> objects need it. A co-worker has suggested creating a base object that
> all other objects inherit from that has setConstants()/getConstants()
> functions, and injecting the constants object automatically into every
> object. Because of the global nature of constants this is sounding
> like a fair use of a base application object. What do you think?
>
>
> >
>
--
- Prashant Roy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---