initialization - CDI / Weld SE - @Observes ContainerInitialized doesn't work -


i have weld se, bootstraped way:

   weldcontainer weld = new weld().initialize(); 

and following bean

@applicationscoped public class entitymanagerstoreimpl implements entitymanagerstore {    static {   system.out.println(" aaaaaa emsi static"); }    public entitymanagerstoreimpl() {      system.out.println(" aaaaaa emsi constructor");   }    public void init( @observes containerinitialized containerinitialized ) {       system.out.println(" aaaaaa emsi init");   }   ... } 

according weld docs, init() method should called. it's not. other beans working fine.
can wrong?

oh... should have read docs more carefuly.

containerinitialized only fired startmain helper class. don't that, i'd expect fired weld.initialize(). created https://issues.jboss.org/browse/weld-949

(pls vote if share oppinion me.)


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -