Search in sources :

Example 1 with PolicyBean

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;
}
Also used : MutablePassThroughMetadata(org.apache.aries.blueprint.mutable.MutablePassThroughMetadata) MutableBeanMetadata(org.apache.aries.blueprint.mutable.MutableBeanMetadata) PolicyBean(org.apache.cxf.ws.policy.PolicyBean)

Aggregations

MutableBeanMetadata (org.apache.aries.blueprint.mutable.MutableBeanMetadata)1 MutablePassThroughMetadata (org.apache.aries.blueprint.mutable.MutablePassThroughMetadata)1 PolicyBean (org.apache.cxf.ws.policy.PolicyBean)1