Search in sources :

Example 1 with BeanArgumentImpl

use of org.apache.aries.blueprint.reflect.BeanArgumentImpl in project aries by apache.

the class Parser method parseBeanArgument.

private BeanArgument parseBeanArgument(ComponentMetadata enclosingComponent, Element element) {
    int index = element.hasAttribute(INDEX_ATTRIBUTE) ? Integer.parseInt(element.getAttribute(INDEX_ATTRIBUTE)) : -1;
    String type = element.hasAttribute(TYPE_ATTRIBUTE) ? element.getAttribute(TYPE_ATTRIBUTE) : null;
    Metadata value = parseArgumentOrPropertyValue(element, enclosingComponent);
    return new BeanArgumentImpl(value, type, index);
}
Also used : BeanArgumentImpl(org.apache.aries.blueprint.reflect.BeanArgumentImpl) CollectionMetadata(org.osgi.service.blueprint.reflect.CollectionMetadata) ValueMetadata(org.osgi.service.blueprint.reflect.ValueMetadata) ServiceMetadata(org.osgi.service.blueprint.reflect.ServiceMetadata) NonNullMetadata(org.osgi.service.blueprint.reflect.NonNullMetadata) RefMetadata(org.osgi.service.blueprint.reflect.RefMetadata) ServiceReferenceMetadata(org.osgi.service.blueprint.reflect.ServiceReferenceMetadata) BeanMetadata(org.osgi.service.blueprint.reflect.BeanMetadata) NullMetadata(org.osgi.service.blueprint.reflect.NullMetadata) Metadata(org.osgi.service.blueprint.reflect.Metadata) PropsMetadata(org.osgi.service.blueprint.reflect.PropsMetadata) ComponentMetadata(org.osgi.service.blueprint.reflect.ComponentMetadata) IdRefMetadata(org.osgi.service.blueprint.reflect.IdRefMetadata) ReferenceMetadata(org.osgi.service.blueprint.reflect.ReferenceMetadata) MapMetadata(org.osgi.service.blueprint.reflect.MapMetadata) ReferenceListMetadata(org.osgi.service.blueprint.reflect.ReferenceListMetadata)

Aggregations

BeanArgumentImpl (org.apache.aries.blueprint.reflect.BeanArgumentImpl)1 BeanMetadata (org.osgi.service.blueprint.reflect.BeanMetadata)1 CollectionMetadata (org.osgi.service.blueprint.reflect.CollectionMetadata)1 ComponentMetadata (org.osgi.service.blueprint.reflect.ComponentMetadata)1 IdRefMetadata (org.osgi.service.blueprint.reflect.IdRefMetadata)1 MapMetadata (org.osgi.service.blueprint.reflect.MapMetadata)1 Metadata (org.osgi.service.blueprint.reflect.Metadata)1 NonNullMetadata (org.osgi.service.blueprint.reflect.NonNullMetadata)1 NullMetadata (org.osgi.service.blueprint.reflect.NullMetadata)1 PropsMetadata (org.osgi.service.blueprint.reflect.PropsMetadata)1 RefMetadata (org.osgi.service.blueprint.reflect.RefMetadata)1 ReferenceListMetadata (org.osgi.service.blueprint.reflect.ReferenceListMetadata)1 ReferenceMetadata (org.osgi.service.blueprint.reflect.ReferenceMetadata)1 ServiceMetadata (org.osgi.service.blueprint.reflect.ServiceMetadata)1 ServiceReferenceMetadata (org.osgi.service.blueprint.reflect.ServiceReferenceMetadata)1 ValueMetadata (org.osgi.service.blueprint.reflect.ValueMetadata)1