Hey John, I don't really think that makes much sense. Sorry, I'm not sure why you can't just have the services injected into your listeners via the ColdSpring mach-ii plugin.

Chris

Chris Scott
[EMAIL PROTECTED]
http://cdscott.blogspot.com/
http://www.coldspringframework.org/


GIF image







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




Reply via email to