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));
}
Aggregations