You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Rodrigo Moro <rg...@cpd.ufsm.br> on 2005/04/28 22:38:29 UTC

[chain][PATCH] Flexible config

Hi guys,

I missed more flexibility for the chain config, so I modified the
ConfigRuleSet class to allow defining a default command class name,
similar to what was did for the chain. You can see the result on the
attached diff.

I wanted to keep my code decoupled of the Command interface, so I
implemented an adapter from Command to my code. However, it's boring to
have to set the adapter class name for each command tag on the XML
config file.

Thus, the simple modification I introduced solves the problem, because
my specific subclass of ConfigRuleSet can set the adapter class as the
default command class.


Rodrigo