1 package org.wamblee.cdi;
3 import javax.enterprise.inject.spi.BeanManager;
5 import org.jboss.weld.environment.se.Weld;
6 import org.jboss.weld.environment.se.WeldContainer;
8 public class BeanManagerSetup {
11 private WeldContainer container;
12 private BeanManager beanManager;
14 public BeanManagerSetup() {
18 public void initialize() {
20 container = weld.initialize();
21 beanManager = container.getBeanManager();
24 public BeanManager getBeanManager() {
28 public void shutdown() {