How are the Actions instantiated? Before, it was doing newInstance() from the class in the DefaultActionInvocation... I assume you replace the ActionProxyFactory in the lifecycle listener?
> -----Original Message----- > From: Matt Ho [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 10:34 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] pico support available > > > i've added pico support to xwork and webwork. i've also updated the > sample application in webwork to use pico. to use pico ioc, > you'll need > to put the following to your web.xml file: > > <listener> > <listener-class>com.opensymphony.webwork.lifecycle.PicoApplica > tionLifecycleListener</listener-class> > </listener> > > <listener> > <listener-class>com.opensymphony.webwork.lifecycle.PicoSession > LifecycleListener</listener-class> > </listener> > > <filter> > <filter-name>container</filter-name> > <filter-class>com.opensymphony.webwork.lifecycle.PicoRequestLi > fecycleFilter</filter-class> > </filter> > > <filter-mapping> > <filter-name>container</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > Save the class names, this is probably the same as what you already > have. You'll need to remove the ComponentInterceptor from the > interceptor stack as this isn't needed anymore. > > Additionally, your components.xml file will need to be configured a > little differently. Whereas before you would have: > > <component> > <scope>application</scope> > <class>HibernatePersistenceManager</class> > <enabler>PersistenceManagerAware</enabler> > </component> > > with a class that looked like: > > public class Foo implements PersistenceManagerAware { > private PersistenceManager persistenceManager; > public void setPersistenceManager(PersistenceManager > persistenceManager) { > this.persistenceManager = persistenceManager; > } > } > > You'll now have: > > > <component> > <scope>application</scope> > <class>HibernatePersistenceManager</class> > <enabler>PersistenceManager</enabler> > </component> > > with a class that looked like: > > public class Foo { > private PersistenceManager persistenceManager; > public Foo(PersistenceManager persistenceManager) { > this.persistenceManager = persistenceManager; > } > } > > My intent is to put it out there for comment and then replace the > existing IoC framework once this one is solid. As one small step > backwards, the pico implementation does not yet support the > Startable, > Stoppable, or Disposable interfaces. I'll add that today or tomorrow. > > Cheers! > > M > > > > > > ------------------------------------------------------- > 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/psa00100006ave/direct;at.asp_06 1203_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/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork