This is what the @PostConstruct
annotation is for. It is called after your bean is constructed by the CDI container, but before it is actually placed into service. Example:
public class POJO {
public Pojo() {
super();
}
@PostConstruct
protected void initialize() {
// initialization code here
}
}
Documentation: http://docs.oracle.com/javaee/6/api/javax/annotation/PostConstruct.html