commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramaswamy, Muthu" <mramasw...@gers.com>
Subject RE: [Chain] - Settable Parameter Question.
Date Wed, 09 Nov 2005 14:22:42 GMT
Thanks for the info. It was very helpful. -Muthu

-----Original Message-----
From: craigmcc@gmail.com [mailto:craigmcc@gmail.com]On Behalf Of Craig
McClanahan
Sent: Tuesday, November 08, 2005 6:49 PM
To: Jakarta Commons Users List
Subject: Re: [Chain] - Settable Parameter Question.


On 11/8/05, Ramaswamy, Muthu <mramaswamy@gers.com> wrote:
>
> Hi All-
>
> I believe one can define (settable) parameters in the Catalog file for
> each command. Is it true?


Yes.

If yes, where I can find the proper syntax to define the parameters. Any
> sample file/segment would help.


Commons Chain uses Commons Digester to parse the configuration file, and
tries to match (nearly) all attributes you specify on a <command> element to
a corresponding property on the implementation class. So, if you have a
Command class "mypackage.Foo" that has properties "bar" and "baz", you can
configure them like this:

<command className="mypackage.Foo" bar="bar value" baz="baz value"/>

Craig



Thanks.
>
> -Muthu Ramaswamy
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message