A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: May 10, 2011
Dec 20, 2011 06:24:30
May I use an @Autowired object from Spring inside my @PostConstruct method?
Joined: Jun 25, 2001
Dec 21, 2011 05:26:12
I think that Autowired is used by Spring to construct beans and (no surprise here!) automatically wire them together.
backing bean, however, is constructed by JSF, not by Spring. The JSF equivalent of @Autowired is @ManagedProperty.
The main functional difference between the 2 annotations is that @ManagedProperty accepts an EL expression instead of simply deducing the source property's bean name.
Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
suppourt for Annotation Programming . In servlets
@PostConstruct == ejbPostCreate( ) ?
Need to call a method to populate my list, then have that list bound to rich tree
Many @PostConstruct methods?
ejbPostCreate() in EJB 2.1
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013