I've used Joe's tool a little bit ;-) so here is my comment regarding the drawbacks:
Imho the tricky issue is the configuration of BlablaAware plug point for a component. There's a components.xml file for them: > <component> > <class>org.blabla.cart.DefaultCart</class> > <enabler>org.blabla.cart.CartAware</enabler> > <scope>session</scope> > </component> Imho for a general purpose framework like webwork we need other options too. - a Foo.component.xml setup file for a single component, unlike components.xml which is for all components. - we need an abstract Configurer interface, an XmlConfigurer would use the xml files. A DynamicConfigurer could hijack the request and do whatever it wants. - In the component.xml file we should be careful about a lot of details: - ordering and decoration of enablers/components - passing parameters to enblers, maybe a nested <param/> element - and so on - we can use @attributes (as Joe already suggested us): /** @component scope=session */ public class DefaultSomething implements Something { /** @dependency */ public void setPersistenceManager(PersistenceManager pm) { ... } My point is that you should have full control over the dependency configuration part, in other words you should be able to take control of the container for different needs. Ara. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Rickard Öberg > Sent: Friday, March 07, 2003 1:37 AM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware > deprecation] > > Patrick Lightbody wrote: > >>What are the drawbacks of this approach? > >> > >>/Rickard > > > > Not too many... I suppose the NPE problem could crop up.. It also makes > your > > design a bit unclear to novices ("Where'd the Connection come from?"), > but > > these are pretty minor. > > Are there really no other drawbacks you can think of? Please try a > little harder. > > I can think of quite a few, but as I said, I wanted to get your view > first. > > /Rickard > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The > debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork