0

At what point is a field using @ManagedProperty annotation set? Specifically, does it happen during construction or after construction?

Tiny
  • 27,221
  • 105
  • 339
  • 599
SidK
  • 76
  • 7
  • It happens immediately after bean construction. It is explained over [here](http://stackoverflow.com/a/4889226/1391249). – Tiny Jan 17 '15 at 14:01

1 Answers1

0

Any field using @ManagedProperty annotation is set immediately after the constructor runs. So the same field can be used in a @PostConstruct method. That is what my main concern was while asking this question. For more lucid details please refer to the following excellent post https://stackoverflow.com/a/4889226/1391249

Community
  • 1
  • 1
SidK
  • 76
  • 7