I don't know how Spring does this, but I know Pico allows you to
register components with any Object as the key... This can be the
interface that it implements, if there's only one, or any String, for
multiple instances. It sounds like Spring does the same?

You don't have to use components.xml, since that's specific to the IoC
implementation in Xwork. Integrations with other IoC frameworks will
either need to use the framework's built-in dependency resolution (I
think maybe NanoContainer has some XML configuration stuff, don't know
about Spring) or build something on top of it (which could use
components.xml, I suppose).

Jason

> -----Original Message-----
> From: Matthew E. Porter [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, August 09, 2003 1:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Springframework & WW (Was - Re: [OS-webwork] Is 
> This a Bad Use of IoC?)
> 
> 
> I am debating possibly starting this, but I am looking for 
> some advise.  
>   Since Spring allows multiple instances of the same 
> component/object,  
> my guess is that it will become necessary to map Action to bean  
> reference in either the components.xml or 
> applicationContext.xml file.   
> Personally, one of the things I like about the *Aware method is not  
> having to add this to yet another file.  How did Pico handle passing  
> the components to the actions?  Anyone have any thoughts on this?
> 
> 
> Cheers,
>    matthew
> 
> 
> On Friday, August 8, 2003, at 12:46 PM, Jason Carreira wrote:
> 
> > Not that I know of... I'd be happy to help out.
> >
> >> -----Original Message-----
> >> From: Matthew E. Porter [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, August 08, 2003 1:40 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Springframework & WW (Was - Re: [OS-webwork] Is 
> This a Bad 
> >> Use of IoC?)
> >>
> >>
> >> Has springframework integration been started?
> >>
> >>
> >> Cheers,
> >>    matthew
> >>
> >> On Friday, August 8, 2003, at 11:23 AM, Jason Carreira wrote:
> >>
> >>> Yes, it will set up dependencies for you. No, I don't think it 
> >>> requires *Aware interfaces.
> >>>
> >>>> -----Original Message-----
> >>>> From: Matthew E. Porter [mailto:[EMAIL PROTECTED]
> >>>> Sent: Friday, August 08, 2003 11:50 AM
> >>>> To: [EMAIL PROTECTED]
> >>>> Subject: Re: [OS-webwork] Is This a Bad Use of IoC?
> >>>>
> >>>>
> >>>> Using Spring, will components automatically be passed to Actions 
> >>>> still?
> >>>>   Is there still going to be a need for *Aware interfaces?  Many 
> >>>> questions...
> >>>>
> >>>>
> >>>> Cheers,
> >>>>    matthew
> >>>>
> >>>>
> >>>> On Friday, August 8, 2003, at 10:26 AM, Jason Carreira wrote:
> >>>>
> >>>>> In the same way that we're going to have a Pico
> >> integration for IoC,
> >>>>> I'd like to have a Spring integration for IoC... But these need
> >>>> to be in an
> >>>>> add-on project for integrating other dependencies with
> >>>> Xwork / WebWork
> >>>>> outside of the main code base.
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Matthew E. Porter [mailto:[EMAIL PROTECTED]
> >>>>>> Sent: Friday, August 08, 2003 11:19 AM
> >>>>>> To: [EMAIL PROTECTED]
> >>>>>> Subject: Re: [OS-webwork] Is This a Bad Use of IoC?
> >>>>>>
> >>>>>>
> >>>>>> What is the planned intergration with Spring?
> >>>>>>
> >>>>>>
> >>>>>> Cheers,
> >>>>>>    matthew
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Thursday, August 7, 2003, at 08:57 PM, Jason Carreira wrote:
> >>>>>>
> >>>>>>> I think we need to get the project for external
> >>>>>> integrations going. I
> >>>>>>> got a note from Rod Johnson about this too, and I think it
> >>>>>> would be a
> >>>>>>> great idea to have integrations with Spring and
> >>>> Picocontainer, but
> >>>>>>> these need to be in a separate project. We're
> >> explicitly limiting
> >>>>>>> dependencies in Xwork / WebWork as much as possible.
> >>>>>>>
> >>>>>>> Jason
> >>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: Rob Rudin [mailto:[EMAIL PROTECTED]
> >>>>>>>> Sent: Thursday, August 07, 2003 9:39 PM
> >>>>>>>> To: [EMAIL PROTECTED]
> >>>>>>>> Subject: Re: [OS-webwork] Is This a Bad Use of IoC?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Not to sound like a broken record, but I think Spring does
> >>>>>> a nice job
> >>>>>>>> of handling Hibernate. It provides a Hibernate template to
> >>>>>> handle the
> >>>>>>>> Hibernate plumbing and nice support for configuring a
> >>>>>> SessionFactory.
> >>>>>>>> Should be very easy to hook this into WW2's IoC.
> >>>>>>>>
> >>>>>>>> Rob
> >>>>>>>>
> >>>>>>>> ----- Original Message -----
> >>>>>>>> From: "Matthew E. Porter" <[EMAIL PROTECTED]>
> >>>>>>>> To: <[EMAIL PROTECTED]>
> >>>>>>>> Sent: Thursday, August 07, 2003 8:38 PM
> >>>>>>>> Subject: [OS-webwork] Is This a Bad Use of IoC?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> I think I may be going Inversion of Control mad lately and
> >>>>>>>> need some
> >>>>>>>>> help sorting out if what I am doing is just wrong.  I am
> >>>>>> building a
> >>>>>>>>> new persistence manager where the core manager is 
> based upon 
> >>>>>>>>> hibernate. The hibernate manager needs three different
> >>>>>>>> providers- one
> >>>>>>>>> for Configuration, one for SessionFactory, and one for
> >>>>>>>> Sessions.  Each
> >>>>>>>>> of these providers (Conf, SF, and Session) can have 
> different 
> >>>>>>>>> implementations.  For example, the default Session
> >>>>>> provider always
> >>>>>>>>> returns a new session; however, there is also a
> >>>>>> ThreadLocal version
> >>>>>>>>> which returns the same session for the entire thread.
> >>>>>>>>>
> >>>>>>>>> The question I have is how do I specify and load these at
> >>>>>> runtime?
> >>>>>>>>> The most obvious answer is to have a custom xml file that
> >>>>>> specifies
> >>>>>>>>> which provider fulfills each role.  I could write (and
> >>>>>> already have
> >>>>>>>>> done so) a loader to read an XML file and configure the
> >>>>>>>> system.  But,
> >>>>>>>>> instead of having this in a separate file, would it be
> >>>> a complete
> >>>>>>>>> bastardization of the intention of IoC (XWork edition) to
> >>>>>> use it to
> >>>>>>>>> automatically configure the providers?
> >>>>>>>>>
> >>>>>>>>> Why does this seem bad?  Because the primary intention of
> >>>>>> IoC is to
> >>>>>>>>> wire business components whereas these providers will
> >>>>>>>> probably never
> >>>>>>>>> be used outside the real component, the persistence
> >>>>>>>> manager.  Instead,
> >>>>>>>>> it seems like I am too lazy to write a loader to configure
> >>>>>>>> the system.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Cheers,
> >>>>>>>>>    matthew
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> -------------------------------------------------------
> >>>>>>>>> This SF.Net email sponsored by: Free pre-built ASP.NET
> >>>>>>>> sites including
> >>>>>>>>> Data Reports, E-commerce, Portals, and Forums are
> >>>> available now.
> >>>>>>>>> Download today and enter to win an XBOX or Visual 
> Studio .NET.
> >>>>>>>>>
> >>>>>>>> 
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> >>>>>>>> _072303_01/01
> >>>>>>>>> _______________________________________________
> >>>>>>>>> Opensymphony-webwork mailing list 
> >>>>>>>>> [EMAIL PROTECTED]
> >>>>>>>>>
> >>>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> -------------------------------------------------------
> >>>>>>>> This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> >>>>>>>> including Data Reports, E-commerce, Portals, and Forums
> >>>>>> are available
> >>>>>>>> now. Download today and enter to win an XBOX or Visual
> >>>> Studio .NET.
> >>>>>>>> 
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> >>>>>>> _072303_01/01 _______________________________________________
> >>>>>>> Opensymphony-webwork mailing list 
> >>>>>>> [EMAIL PROTECTED]
> >>>>>>>
> >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>>>>>>
> >>>>>>>
> >>>>>>> -------------------------------------------------------
> >>>>>>> This SF.Net email sponsored by: Free pre-built ASP.NET
> >>>>>> sites including
> >>>>>>> Data Reports, E-commerce, Portals, and Forums are
> >> available now.
> >>>>>>> Download today and enter to win an XBOX or Visual 
> Studio .NET. 
> >>>>>>> http://aspnet.click-url.com/go/psa00100003ave/
> >>>>>>> direct;at.aspnet_072303_01/01 
> >>>>>>> _______________________________________________
> >>>>>>> Opensymphony-webwork mailing list 
> >>>>>>> [EMAIL PROTECTED]
> >>>>>>>
> >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> -------------------------------------------------------
> >>>>>> This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> >>>>>> including Data Reports, E-commerce, Portals, and Forums are 
> >>>>>> available now. Download today and enter to win an XBOX 
> or Visual 
> >>>>>> Studio .NET. 
> >>>>>> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> >>>>> _072303_01/01 _______________________________________________
> >>>>> Opensymphony-webwork mailing list 
> >>>>> [EMAIL PROTECTED]
> >>>>> 
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>>>>
> >>>>>
> >>>>> -------------------------------------------------------
> >>>>> This SF.Net email sponsored by: Free pre-built ASP.NET
> >>>> sites including
> >>>>> Data Reports, E-commerce, Portals, and Forums are 
> available now. 
> >>>>> Download today and enter to win an XBOX or Visual Studio .NET. 
> >>>>> http://aspnet.click-url.com/go/psa00100003ave/
> >>>>> direct;at.aspnet_072303_01/01 
> >>>>> _______________________________________________
> >>>>> Opensymphony-webwork mailing list 
> >>>>> [EMAIL PROTECTED]
> >>>>> 
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>>>
> >>>>
> >>>>
> >>>> -------------------------------------------------------
> >>>> This SF.Net email sponsored by: Free pre-built ASP.NET
> >> sites including
> >>>> Data Reports, E-commerce, Portals, and Forums are available now. 
> >>>> Download today and enter to win an XBOX or Visual Studio .NET. 
> >>>> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> >>>> _072303_01/01 _______________________________________________
> >>>> Opensymphony-webwork mailing list
> >>>> [EMAIL PROTECTED]
> >>>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>>>
> >>>
> >>>
> >>> -------------------------------------------------------
> >>> This SF.Net email sponsored by: Free pre-built ASP.NET
> >> sites including
> >>> Data Reports, E-commerce, Portals, and Forums are available now. 
> >>> Download today and enter to win an XBOX or Visual Studio .NET. 
> >>> http://aspnet.click-url.com/go/psa00100003ave/
> >>> direct;at.aspnet_072303_01/01 
> >>> _______________________________________________
> >>> Opensymphony-webwork mailing list 
> >>> [EMAIL PROTECTED]
> >>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> >> including Data Reports, E-commerce, Portals, and Forums 
> are available 
> >> now. Download today and enter to win an XBOX or Visual 
> Studio .NET. 
> >> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> >> _072303_01/01 _______________________________________________
> >> Opensymphony-webwork mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >>
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET 
> sites including 
> > Data Reports, E-commerce, Portals, and Forums are available now. 
> > Download today and enter to win an XBOX or Visual Studio .NET. 
> > http://aspnet.click-url.com/go/psa00100003ave/
> > direct;at.aspnet_072303_01/01 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> including Data Reports, E-commerce, Portals, and Forums are 
> available now. Download today and enter to win an XBOX or 
> Visual Studio .NET. 
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to