Search in sources :

Example 1 with WeldInitialListener

use of org.jboss.weld.servlet.WeldInitialListener in project aries by apache.

the class HttpExtension method afterDeploymentValidation.

void afterDeploymentValidation(@Observes AfterDeploymentValidation adv, BeanManager beanManager) {
    processWebClasses();
    BeanManagerImpl beanManagerImpl = ((BeanManagerProxy) beanManager).delegate();
    Dictionary<String, Object> properties = new Hashtable<>();
    properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT, getSelectedContext());
    properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_LISTENER, Boolean.TRUE.toString());
    properties.put(Constants.SERVICE_RANKING, Integer.MAX_VALUE - 100);
    _registrations.add(_bundle.getBundleContext().registerService(LISTENER_CLASSES, new WeldInitialListener(beanManagerImpl), properties));
}
Also used : BeanManagerImpl(org.jboss.weld.manager.BeanManagerImpl) Hashtable(java.util.Hashtable) BeanManagerProxy(org.jboss.weld.bean.builtin.BeanManagerProxy) WeldInitialListener(org.jboss.weld.servlet.WeldInitialListener)

Aggregations

Hashtable (java.util.Hashtable)1 BeanManagerProxy (org.jboss.weld.bean.builtin.BeanManagerProxy)1 BeanManagerImpl (org.jboss.weld.manager.BeanManagerImpl)1 WeldInitialListener (org.jboss.weld.servlet.WeldInitialListener)1