Search in sources :

Example 6 with MutableValueMetadata

use of org.apache.aries.blueprint.mutable.MutableValueMetadata in project karaf by apache.

the class NamespaceHandler method createValue.

private static ValueMetadata createValue(ParserContext context, String value, String type) {
    MutableValueMetadata m = context.createMetadata(MutableValueMetadata.class);
    m.setStringValue(value);
    m.setType(type);
    return m;
}
Also used : MutableValueMetadata(org.apache.aries.blueprint.mutable.MutableValueMetadata)

Aggregations

MutableValueMetadata (org.apache.aries.blueprint.mutable.MutableValueMetadata)6 NamespaceHandler (org.apache.aries.blueprint.NamespaceHandler)1 MutableRefMetadata (org.apache.aries.blueprint.mutable.MutableRefMetadata)1 MutableReferenceMetadata (org.apache.aries.blueprint.mutable.MutableReferenceMetadata)1 MutableServiceMetadata (org.apache.aries.blueprint.mutable.MutableServiceMetadata)1 BeanMetadata (org.osgi.service.blueprint.reflect.BeanMetadata)1 ComponentMetadata (org.osgi.service.blueprint.reflect.ComponentMetadata)1 Metadata (org.osgi.service.blueprint.reflect.Metadata)1 NonNullMetadata (org.osgi.service.blueprint.reflect.NonNullMetadata)1 ReferenceMetadata (org.osgi.service.blueprint.reflect.ReferenceMetadata)1 ServiceMetadata (org.osgi.service.blueprint.reflect.ServiceMetadata)1 Target (org.osgi.service.blueprint.reflect.Target)1 Element (org.w3c.dom.Element)1