use of org.apache.aries.blueprint.mutable.MutablePassThroughMetadata 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;
}
use of org.apache.aries.blueprint.mutable.MutablePassThroughMetadata in project aries by apache.
the class TxNamespaceHandler method passThrough.
private MutablePassThroughMetadata passThrough(ParserContext pc, Object o) {
MutablePassThroughMetadata meta = pc.createMetadata(MutablePassThroughMetadata.class);
meta.setObject(o);
return meta;
}
use of org.apache.aries.blueprint.mutable.MutablePassThroughMetadata in project aries by apache.
the class BlueprintNamespaceHandler method createPassThrough.
private ComponentMetadata createPassThrough(ParserContext parserContext, String id, Object o) {
MutablePassThroughMetadata pt = parserContext.createMetadata(MutablePassThroughMetadata.class);
pt.setId(id);
pt.setObject(o);
return pt;
}
use of org.apache.aries.blueprint.mutable.MutablePassThroughMetadata in project aries by apache.
the class AuthorizationNsHandler method passThrough.
private MutablePassThroughMetadata passThrough(ParserContext pc, Object o) {
MutablePassThroughMetadata meta = pc.createMetadata(MutablePassThroughMetadata.class);
meta.setObject(o);
return meta;
}
Aggregations