in reply to Re^3: OO, Library Configuration and Class Variables
in thread OO, Library Configuration and Class Variables
In case I wasn't clear, my original query was how to do this config - it seems you're saying that Loopup::Remote (or LookupFactory, here) can run its own AppConfig->file(), but this raises the issue of passing in the filename from which Lookup::Remote can configure (as you can probably tell I'm against hard-coding values!).sub init_lookup { # run config based upon type of source requested }
Also, unless I have a separate configuration file for 'library values' from the one for 'application values', I'd need to define both sets of variables that AppConfig will use, in all instances of AppConfig, or deal with the warnings it spits out about undefined variables. And something about separating out those config files strikes me as wrong.
I guess I could just modify User to accept an AppConfig instance and pretend that there is a broader use for this than just a single remote_uri parameter, or deal with app-code knowing something about User's internals.
Thanks for the assistance.
--
Now hiring in Atlanta. /msg moot for details.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: OO, Library Configuration and Class Variables
by izut (Chaplain) on Jun 23, 2005 at 23:25 UTC | |
Re^5: OO, Library Configuration and Class Variables
by Transient (Hermit) on Jun 24, 2005 at 13:29 UTC | |
by moot (Chaplain) on Jun 24, 2005 at 13:52 UTC |