Knut Wannheden wrote:
Dave,
Is the object (of class A) you want to create a service implementation
or a configuration contribution?
it's a service.
In either case you will have to define a schema using a combination of
<create-object> rules and an <invoke-parent method="addCommand"/> rule
to add the command to the A object. Note that the <create-object> rule
requires a public no-arg constructor.
hmm, that's no good. I have to add arguments to the constructor.
is it possible to set properties on the object created from
<create-object> ? If so, I could move them from the constructor to set'ers.
HTH,
--knut
On 6/21/05, David J. M. Karlsen <[EMAIL PROTECTED]> wrote:
Hi list!
I want to construct a chain of commands (using commons chain) by using
Hivemind for configuring the chain.
I've got a class (say A) with an interface which I can create OK from
hivemind.
But during construction (or after really) I need to call a method on
this class (addCommand(<someclass>)).
So - how do I instruct Hivemind to
1) create the command (with a constructor, possibly passing parameters to it
2) then call a method on A.addCommand with the object in 1) as an argument.
Thanks in advance!
Dave
--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]