LifeCycle

Spring @PostConstruct and @PreDestroy Example

This tutorial will show you how we can use @PostConstruct and @PreDestroy in Spring. @PostConstruct and @PreDestroy annotations are generally considered best practice for receiving lifecycle callbacks in a modern Spring application. Using these annotations means that our beans are not coupled to Spring specific interfaces. For more information please refer to http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/beans.html#beans-postconstruct-and-predestroy-annotations Sometimes we […]

Life cycle of JavaServer Faces (JSF)

In JavaServer Faces the client makes an HTTP request for the page, and the server responds with the page translated to HTML. However, the JavaServer Faces life cycle is split up into multiple phases in order to support the sophisticated UI(User Interface) component model. This model requires that component data be converted and validated, component […]

Scroll to top