File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
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.
It is sorta covered in the
JavaRanch Style Guide
Need to call a method to populate my list, then have that list bound to rich tree
@PostConstruct == ejbPostCreate( ) ?
Many @PostConstruct methods?
ejbPostCreate() in EJB 2.1
suppourt for Annotation Programming . In servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014