public void addScope(@Observes final BeforeBeanDiscovery event) { event.addScope(ViewScoped.class, true, true); }
public void beforBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager manager) { event.addScope(SOAPScoped.class, true, false); }