we converted our project jboss seam using spring , jsf. our controller needs initialize properties. right using constructor call initialization methods. seam has @factory
annotation decorated method called whenever accessed property/field null. spring have equivalent annotation? lot.
no, spring supports the jsr-250 lifecycle annotations @postconstruct
/ @predestroy
, can use housekeeping when bean starts up.
in fact there @ least 3 mechanisms bean lifecycle management, , interaction , precedence explained in chapter "combining lifecycle mechanisms"
Comments
Post a Comment