Thanks, Dave. That does clear it up for me. I was thinking about it incorrectly. I was thinking that I could use a BeanFactory to set service components in my listeners, but since CS does not instantiate the listeners, this is not how things are done. If I wanted to set service components in the listeners, I could do it through my own plugin similar to the CS MachII plugin. Maybe if MachII someday uses CS to build the listeners, what I wanted to do would be practical.

Thanks again,
Jon

From: "Dave Ross" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
Subject: [coldspring-dev] "private" beans and integrating with MachII/ModelGlue
Date: Wed, 19 Apr 2006 23:55:23 -0400

Jon,

I think the issue is that Mach-ii listeners are not defined in the
Coldspring BeanFactory - thus ColdSpring can't really explicitly wire
things to them. I guess you could write some glue code to pull a list
of beans out of the factory and programatically register them in
mach-ii's app manager, but I'm not sure what that would do to the
(mach-ii) framework's operation.

Does that help?

-Dave

On 4/19/06, Jon Gunnip <[EMAIL PROTECTED]> wrote:
>
> >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
> >>
> >>
> >>
> >
>
>
>
>




Reply via email to