Register Beans dynamicially
Last updated
Was this helpful?
Last updated
Was this helpful?
Before CDI 2.0 register a bean dynamically is a little complex. CDI 2.0 simple the work.
AfterBeanDiscovery
event add addBean
method to register a bean manually.
You can check if the bean is existed in CDI container.
Grab the from my GitHub account, and have a try.