Dave, Is the object (of class A) you want to create a service implementation or a configuration contribution?
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. 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]
