use of org.apache.aries.blueprint.mutable.MutableBeanMetadata in project cxf by apache.
the class RMBPBeanDefinitionParser method parse.
protected Metadata parse(Element element, ParserContext context) {
MutableBeanMetadata bean = context.createMetadata(MutableBeanMetadata.class);
bean.setRuntimeClass(beanClass);
String bus = element.getAttribute("bus");
if (StringUtils.isEmpty(bus)) {
bus = "cxf";
}
mapElementToJaxbProperty(context, bean, element, new QName(RM_NS, "deliveryAssurance"), "deliveryAssurance", DeliveryAssuranceType.class);
mapElementToJaxbProperty(context, bean, element, new QName(RM_NS, "sourcePolicy"), "sourcePolicy", SourcePolicyType.class);
mapElementToJaxbProperty(context, bean, element, new QName(RM_NS, "destinationPolicy"), "destinationPolicy", DestinationPolicyType.class);
mapElementToJaxbProperty(context, bean, element, new QName(RM_NS, "RM10AddressingNamespace"), "RM10AddressingNamespace", RM10AddressingNamespaceType.class);
mapElementToJaxbProperty(context, bean, element, new QName("http://schemas.xmlsoap.org/ws/2005/02/rm/policy", "RMAssertion"), "RMAssertion", org.apache.cxf.ws.rmp.v200502.RMAssertion.class);
// TODO: handle
// mapElementToJaxbProperty(context, bean, element,
// new QName("http://docs.oasis-open.org/ws-rx/wsrmp/200702", "RMAssertion"),
// "RMAssertion",
// org.apache.cxf.ws.rmp.v200702.RMAssertion.class);
parseAttributes(element, context, bean);
parseChildElements(element, context, bean);
bean.setId(beanClass.getName() + context.generateId());
if (beanClass.equals(RMManager.class)) {
bean.addProperty("bus", getBusRef(context, bus));
bean.setDestroyMethod("shutdown");
}
return bean;
}
Aggregations