Matt Raible wrote:

> The test does use manual wiring:
> 
> <quote>
>         action = new PersonAction();
>         GenericManager personManager = (GenericManager)
> applicationContext.getBean("personManager");
>         action.setPersonManager(personManager);
> </quote>
> 
Ah.  I see. Sorry, Matt, but that might mean "manual wiring" to you, but
since the example page is specifically pointing out that you don't need to
wire anything, I just assumed that applicationContext.getBean() returned
the autowired bean.  It's all magic, anyway. :-)

How do you get a manager object, with autowiring, then?  Is it just supposed
to automatically exist in the Action's xxxxManager field (I guess that
makes sense, given the note somewhere about it just needing a setter
method)?

I really think that if autowiring doesn't work with the example, "zero
configuration" shouldn't even be mentioned on that page; it's just
misleading.

I've never been a big fan of this sort of testing scenario, and you haven't
made a convert of me yet :-)
-- 
derek

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

Reply via email to