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
Post a Comment