From: Chris Scott <[EMAIL PROTECTED]>
I'm not sure why you can't just have the services injected into your
listeners via the ColdSpring mach-ii plugin.
Chris. Thanks. I see that I could use the autowiring, but I prefer to
explicitly map the dependencies between the service components from the
model and the individual listeners. That way I could see who was using
what.
If I did explicitly map the listeners to the service components, it seems
like I would have to use one xml file for the factory. I think this is not
ideal because I'd have model instantiation code alongside listener setup
code. My idea was to have a listener CS factory find a bean in another
model service component CS factory, but it seems like this is (a) not
possible and (b) not what people desire to do.
Thanks,
Jon
On Apr 19, 2006, at 7:13 PM, Jon Gunnip wrote:
From: "Sean Corfield" <[EMAIL PROTECTED]>
> 2) I am using MachII and I think I would like to have one factory XML
file
> for my Model and one XML file for instantiating the Model components
in my
> Mach-II listeners. The factory for the Listeners would call
getBean() on
> the factory generated for the Model.
I'm not sure what you're trying to do here - why would you have two
factories? Your model should not know anything about ColdSpring.
I don't think my Model does know anything about ColdSpring. I have some
service components in my Model that are instantiated via ColdSpring. I
want to have one XML file to create these service components and handle
their dependencies. I would use this factory for testing the service
components and to generate the service components for Mach-II. I would
then like to use another XML file to have ColdSpring pull the service
components from the other factory and put the references to them in my
listerners.
Does that make sense?
Jon