As recommended by the Weld team, we should try moving the following steps to occur after http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#after_deployment_validation triggers:
this.creationalContext = beanManager.createCreationalContext( null ); this.instance = injectionTarget.produce( creationalContext ); injectionTarget.inject( this.instance, creationalContext ); injectionTarget.postConstruct( this.instance );
|