private void ParseQualifierProperties(QualifierAttribute attr, AutowireCandidateQualifier qualifier) { foreach (var property in attr.GetType().GetProperties()) { if (!property.Name.Equals("TypeId") && !property.Name.Equals("Value")) { object value = property.GetValue(attr, null); if (value != null) { var attribute = new ObjectMetadataAttribute(property.Name, value); qualifier.AddMetadataAttribute(attribute); } } } }
/// <summary> /// Add the given BeanMetadataAttribute to this accessor's set of attributes. /// </summary> /// <param name="attribute">The BeanMetadataAttribute object to register</param> public void AddMetadataAttribute(ObjectMetadataAttribute attribute) { base.SetAttribute(attribute.Name, attribute); }