Search in sources :

Example 46 with Metadata

use of org.osgi.service.blueprint.reflect.Metadata in project aries by apache.

the class NSHandlerSeven method parse.

// process elements
public Metadata parse(Element element, ParserContext context) {
    Metadata retval = null;
    if (element.getLocalName().equals(ELT_NAME)) {
        final String id = element.getAttributeNS(NSURI, ATTRIB_ID);
        MutableBeanMetadata bm = context.createMetadata(MutableBeanMetadata.class);
        bm.setId(id);
        bm.setScope("PROTOTYPE");
        bm.setClassName(TestBean.class.getName());
        retval = bm;
    }
    return retval;
}
Also used : MutableBeanMetadata(org.apache.aries.blueprint.mutable.MutableBeanMetadata) Metadata(org.osgi.service.blueprint.reflect.Metadata) PassThroughMetadata(org.apache.aries.blueprint.PassThroughMetadata) BeanMetadata(org.osgi.service.blueprint.reflect.BeanMetadata) RefMetadata(org.osgi.service.blueprint.reflect.RefMetadata) ComponentMetadata(org.osgi.service.blueprint.reflect.ComponentMetadata) MutableRefMetadata(org.apache.aries.blueprint.mutable.MutableRefMetadata) MutableBeanMetadata(org.apache.aries.blueprint.mutable.MutableBeanMetadata)

Aggregations

Metadata (org.osgi.service.blueprint.reflect.Metadata)46 ComponentMetadata (org.osgi.service.blueprint.reflect.ComponentMetadata)35 BeanMetadata (org.osgi.service.blueprint.reflect.BeanMetadata)32 ValueMetadata (org.osgi.service.blueprint.reflect.ValueMetadata)27 RefMetadata (org.osgi.service.blueprint.reflect.RefMetadata)26 MutableBeanMetadata (org.apache.aries.blueprint.mutable.MutableBeanMetadata)24 CollectionMetadata (org.osgi.service.blueprint.reflect.CollectionMetadata)23 Element (org.w3c.dom.Element)20 ReferenceMetadata (org.osgi.service.blueprint.reflect.ReferenceMetadata)17 ServiceMetadata (org.osgi.service.blueprint.reflect.ServiceMetadata)17 MapMetadata (org.osgi.service.blueprint.reflect.MapMetadata)16 ServiceReferenceMetadata (org.osgi.service.blueprint.reflect.ServiceReferenceMetadata)16 MutableRefMetadata (org.apache.aries.blueprint.mutable.MutableRefMetadata)15 NonNullMetadata (org.osgi.service.blueprint.reflect.NonNullMetadata)15 NullMetadata (org.osgi.service.blueprint.reflect.NullMetadata)15 IdRefMetadata (org.osgi.service.blueprint.reflect.IdRefMetadata)12 ReferenceListMetadata (org.osgi.service.blueprint.reflect.ReferenceListMetadata)12 Node (org.w3c.dom.Node)12 NodeList (org.w3c.dom.NodeList)12 MutableMapMetadata (org.apache.aries.blueprint.mutable.MutableMapMetadata)11