use of org.apache.cxf.configuration.spring.SimpleBeanDefinitionParser in project cxf by apache.
the class NamespaceHandler method init.
@SuppressWarnings("deprecation")
public void init() {
registerBeanDefinitionParser("bus", new BusDefinitionParser());
registerBeanDefinitionParser("logging", new SimpleBeanDefinitionParser(org.apache.cxf.feature.LoggingFeature.class));
registerBeanDefinitionParser("fastinfoset", new SimpleBeanDefinitionParser(FastInfosetFeature.class));
registerBeanDefinitionParser("workqueue", new SimpleBeanDefinitionParser(AutomaticWorkQueueImpl.class) {
@Override
protected void processNameAttribute(Element element, ParserContext ctx, BeanDefinitionBuilder bean, String val) {
bean.addPropertyValue("name", val);
element.removeAttribute("name");
if (!element.hasAttribute("id")) {
element.setAttribute("id", "cxf.workqueue." + val);
}
}
});
}
use of org.apache.cxf.configuration.spring.SimpleBeanDefinitionParser in project tomee by apache.
the class NamespaceHandler method init.
@SuppressWarnings("deprecation")
public void init() {
registerBeanDefinitionParser("bus", new BusDefinitionParser());
registerBeanDefinitionParser("logging", new SimpleBeanDefinitionParser(org.apache.cxf.feature.LoggingFeature.class));
registerBeanDefinitionParser("fastinfoset", new SimpleBeanDefinitionParser(FastInfosetFeature.class));
registerBeanDefinitionParser("workqueue", new SimpleBeanDefinitionParser(AutomaticWorkQueueImpl.class) {
@Override
protected void processNameAttribute(Element element, ParserContext ctx, BeanDefinitionBuilder bean, String val) {
bean.addPropertyValue("name", val);
element.removeAttribute("name");
if (!element.hasAttribute("id")) {
element.setAttribute("id", "cxf.workqueue." + val);
}
}
});
}
Aggregations