Enhanced CDI Extension to support JAX-RS Features (registered as providers) along with Apache CXF Features
@@ -107,6 +107,8 @@ public class JAXRSCdiResourceExtension implements Extension {
serviceBeans.add(event.getBean());
} else if (event.getAnnotated().isAnnotationPresent(Provider.class)) {
providerBeans.add(event.getBean());
+ } else if (event.getBean().getTypes().contains(javax.ws.rs.core.Feature.class)) {
+ providerBeans.add((Bean< ? extends Feature >)event.getBean());
} else if (event.getBean().getTypes().contains(Feature.class)) {
featureBeans.add((Bean< ? extends Feature >)event.getBean());
} else if (CdiBusBean.CXF.equals(event.getBean().getName())
