Peter Butler on 14/10/08 16:45, wrote:
the recommendation is to use explicit configuration using either the
Spring config file or Annotations. Why did the Struts team choose not to
follow these recommendations?

I don't think so, you can setup Spring-plugin to use autowiring by type not
by name and also Struts will ask Spring factory to create given bean, if it
can't create it, Struts will do it by self, and once again will ask Spring
to create dependencies and so on...

This was not my experience. If Spring could not find the appropriate type it
would fail. If it did find the appropriate type it would auto-wire it,
meaning I had no chance to populate it manually. For this reason I would
strongly suggest adding an autowire="no" configuration option to
StrutsSpringObjectFactory that allows this to happen. This would also make it
consistent with Spring, which has an autoWire="no" option (which is also the
default).

What would be ideal from my POV is the chance to configure the internal struts IoC container with extra beans.

Having to add an IoC container when struts already has one seems to be a waste of resources.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to