When method marked with @PostConstruct called?

前端 未结 1 943
面向向阳花
面向向阳花 2021-01-01 11:43

At which phase of the JSF request processing lifecycle, the backing bean method marked with @PostConstruct called?

1条回答
  •  情书的邮戳
    2021-01-01 12:13

    Methods marked with the @PostConstruct will be invoked after the bean has been created, dependencies have been injected, all managed properties are set, and before the bean is actually set into scope.

    Found related SO thread, might not be exactly same but it answers your question. And a blog entry explaining the same.

    0 讨论(0)
提交回复
热议问题