[Opensource] Custom initial properties?
Michael Rimov
rimovm at centercomp.com
Wed May 7 11:55:47 PDT 2003
At 01:08 AM 5/7/2003 -0700, you wrote:
>Hi,
>
>What is the best way to handle custom initialization parameters?
>
>Setup.java and ConfigManager.java offer a static means to access various
>parameters that an application might want to set. However, Setup has the
>schema name which would be easy to mistake, in my opinion, and neither
>approach seems to offer easy access to ServletContext parameters. Expresso
>itself uses such values in web.xml:
>
> <context-param>
> <param-name>configDir</param-name>
> <param-value>WEB-INF/config</param-value>
> </context-param>
>
>It would be easy to add code in that configManager.config() routine such
>that the entire list of context parameters found in web.xml would be added
>as custom properties.
>
>What do you think? How do you handle this?
Larry,
The new config system I've been working on will take care of this. I urge
you to hold of and then give me a holler if it doesn't do what you
want. The new config system will allow each component to have various
configuration values based upon various configuration data types.... all
graphically manageable.
Hope this helps!
-Mike
More information about the Opensource
mailing list