On Aug 28, 2009, at 6:15 PM, Hontvári József wrote: > I try to use the addXXX bean configuration pattern where the parameter > is an interface. Is there a way to somehow specify the actual class > which should be added? > > Here is an example. Of course this doesn't work, Resin doesn't accept > the "class" attribute. > > <m:FilterChain> > <filter resin:class="m.PostmasterFilter"> > <dir>c:/temp/mail</dir> > </filter> > </m:FilterChain>
It's declared inline like the following: <m:FilterChain> <filter> <m:PostmasterFilter> <dir>c:/temp/mail</dir> </m:PostmasterFilter> </filter> </m:FilterChain> That way, there's a consistent syntax for all bean instances. -- Scott > > > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest