title: calling @PostConstruct on super bean AND extending bean
body: <p>I have a BaseBean with a @PostConstruct, and a bean extending it on which i would like to call another @PostConstruct. I have read several places where it said it was possible, however, it seems the @postConstruct on the extending class is called first (if the second is called at all). I then get a NPE on "context" because I'm assuming the super bean's PostConstruct has already been called.</p>
  
  <p>Is this do-able? If so what am I doing wrong?</p>
  
  <p>Base bean:</p>
  
  <pre><code>@ManagedBean
  @RequestScoped
  public class BaseBean {
  @ManagedProperty(value = "#{contextBean}")
    private ContextBean contextBean;
    Context context;
  @PostConstruct
  public void setupContext() {
      context = getContextBean().getContext();
  }
  </code></pre>
  
  <p>Extending bean:</p>
  
  <pre><code>@ManagedBean
  @RequestScoped
  public class SmartBoxSearchBean extends BaseBean {
  @PostConstruct
  public void setUp() {
      jsonHelper = context.get(SmartBoxJsonHelper.class);
  }
  </code></pre>
  
  <p>Thanks,
  Yotam.</p>