@Reference(service = ComponentMetaDataDecorator.class, name = "componentMetadataDecorator",
               cardinality = ReferenceCardinality.MULTIPLE,
               policy = ReferencePolicy.DYNAMIC)
    protected void setComponentMetadataDecorator(ServiceReference<ComponentMetaDataDecorator> ref) {
        componentMetadataDecoratorRefs.putReference((String) ref.getProperty("component.name"), ref);
    }
@ Reference ( service = ComponentMetaDataDecorator . class , name = "componentMetadataDecorator" , cardinality = ReferenceCardinality . MULTIPLE , policy = ReferencePolicy . DYNAMIC ) protected void setComponentMetadataDecorator ( ServiceReference < ComponentMetaDataDecorator > ref ) { componentMetadataDecoratorRefs . putReference ( ( String ) ref . getProperty ( "component.name" ) , ref ) ; }
Declarative Services method for adding a component metadata decorator.

@param ref reference to the service