use of org.apache.cxf.ws.policy.PolicyBean in project cxf by apache.
the class PolicyBPDefinitionParser method parse.
public Metadata parse(Element element, ParserContext context) {
MutablePassThroughMetadata factory = context.createMetadata(MutablePassThroughMetadata.class);
factory.setId(resolveId(element, context) + UUID.randomUUID().toString());
PolicyBean policyBean = new PolicyBean();
policyBean.setElement(element);
factory.setObject(new PassThroughCallable<Object>(policyBean));
MutableBeanMetadata resourceBean = context.createMetadata(MutableBeanMetadata.class);
resourceBean.setId(resolveId(element, context));
resourceBean.setFactoryComponent(factory);
resourceBean.setFactoryMethod("call");
return resourceBean;
}
Aggregations