logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertdon...@mac.com>
Subject Re: ideas for dynamic configuration
Date Tue, 14 May 2002 21:33:02 GMT

On Tuesday, May 14, 2002, at 10:11 PM, Mark Womack wrote:

>> the first strategy is to allow the subcomponents to configure
>> themselves
>> using bean-like rules. the idea is that the object to be
>> configured must
>> conform to certain patterns similar to getters and setters for the
>> xml->object mapping. (xo and betwixt in the commons-sandbox
>> were created
>> with this philosophy in mind.)
>> this strategy has the advantage of being more secure and
>> offers less room
>> for configuration conflicts. it's also much easier to explain to an
>> implementor that these are the rules that their beans need to
>> follow to
>> make the configuration work properly than it is to say - go
>> learn digester.
> I like this idea (regardless of whether digester is used to implement it)
> because as mentioned, it would be relatively easy to document what a
> developer would need to do (name methods in a certain pattern?) to make
> their component "dynamic configuration" enabled.

digester's just a SAX wrapper. given a little effort, you can do nearly 
anything with it :)

self-configuration is more powerful and there may be circumstances where 
that extra power is needed. a good example is when you want to have in 
your configuration graph objects whose signatures cannot be changed 
because they were not created by yourself but which don't meet the rules.

it doesn't really have to be an either/or situation. there's no reason why 
both approaches shouldn't be supported so long as there's a demand.

> I also think it could be
> applied to multiple/different configuration file formats, not just the xml
> format.  But I would like to work out an example.

sounds interesting, i'd say.

- robert

To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>

View raw message