EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification. 
X Wiki

4.5. Writing a First Lifecycle Interceptor

The bean can be notified of certain lifecycle events: for example, when a bean is created or destroyed.

In the following example, a method of the bean will receive an event when an instance of the bean is built. This is done by using the @PostConstruct annotation.

Llifecycle interceptors of a bean may be defined in another class.

    /**
     * Notified of postconstruct event.
     */
    @PostConstruct
    public void notified() {
        System.out.println("New instance of this bean");
    }
Copyright © 2006 EasyBeans / ObjectWeb consortium

http://www.easybeans.org