Search in sources :

Example 21 with MutablePassThroughMetadata

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

Example 22 with MutablePassThroughMetadata

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

Example 23 with MutablePassThroughMetadata

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

Example 24 with MutablePassThroughMetadata

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

Aggregations

MutablePassThroughMetadata (org.apache.aries.blueprint.mutable.MutablePassThroughMetadata)24 MutableBeanMetadata (org.apache.aries.blueprint.mutable.MutableBeanMetadata)17 JAXBException (javax.xml.bind.JAXBException)8 ExpressionNode (org.apache.camel.model.ExpressionNode)7 ComponentDefinitionException (org.osgi.service.blueprint.container.ComponentDefinitionException)7 Node (org.w3c.dom.Node)7 UserResource (org.apache.cxf.jaxrs.model.UserResource)3 Attr (org.w3c.dom.Attr)3 NamedNodeMap (org.w3c.dom.NamedNodeMap)3 MutableCollectionMetadata (org.apache.aries.blueprint.mutable.MutableCollectionMetadata)2 ComponentMetadata (org.osgi.service.blueprint.reflect.ComponentMetadata)2 Metadata (org.osgi.service.blueprint.reflect.Metadata)2 Element (org.w3c.dom.Element)2 StringWriter (java.io.StringWriter)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 JAXBElement (javax.xml.bind.JAXBElement)1 Unmarshaller (javax.xml.bind.Unmarshaller)1 QName (javax.xml.namespace.QName)1