its not a bad practice to parameterise a configuration file. How else would
you do it?

Your classes need environment-specific information so you extract that to
property files and then pass the correct one to your main configuration
system (XML, Java code, whatever) and it reads the properties.

Its a solved problem.

Rakesh


On Tue, Feb 19, 2013 at 3:20 PM, phil swenson <[email protected]>wrote:

> Ok, from my experience I don't see it used.  When I suggest it I hear
> it's "bad practice" to mix code and config.  Anyway, this is all
> anecdote.  Maybe I'm hanging with the wrong people :)
>
>
>
> On Tue, Feb 19, 2013 at 7:21 AM, Fabrizio Giudici
> <[email protected]> wrote:
> > On Tue, 19 Feb 2013 15:13:43 +0100, phil swenson <[email protected]
> >
> > wrote:
> >
> >> I should clarify myself, I really meant "Almost no one in
> >>  the java world seems to use dynamic XML for *configuration*"
> >
> >
> > Ah-ha! But I answered before reading this. So I'm almost no one in the
> > world. :-)
> >
> >
> > --
> > Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
> > "We make Java work. Everywhere."
> > http://tidalwave.it/fabrizio/blog - [email protected]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/javaposse?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/javaposse?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to