On Wed, Oct 28, 2009 at 5:29 PM, Michael O'Cleirigh <[email protected]> wrote: > You could use the @Autowired Spring annotation and the autowire="byType" > attribute to the bean definition to support autowiring to get the same > effect as @SpringBean brings in Components.
Not exactly, Michael. The injected beans aren't a good candidate to pass to pages/components that need to be serialized. That's one of the main reasons why we use @SpringBean. If you're just going to use the beans by looking them up through the application object, then it's no big deal. But, if they ever make their way into a page/component as a field, then you'll have problems. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
