if (properties != null && properties.isEmpty() == false)
{
for(PropertyInfo pi : properties)
{
MethodInfo setter = pi.getSetter();
FieldInfo field = pi.getFieldInfo();
if (setter != null)
{
visitedMethods.add(setter);
Signature sis = new MethodSignature(setter);
MetaData cmdr = retrieval.getComponentMetaData(sis);
if (cmdr != null)
{
for(AnnotationPlugin plugin : propertyAnnotationPlugins)
{
if (isApplyPhase)
plugin.applyAnnotation(pi, cmdr, visitor);
else
plugin.cleanAnnotation(pi, cmdr, visitor);
}
}
else if (trace)
log.trace("No annotations for property " + pi.getName());
}
else if (field != null)
{
Signature sis = new FieldSignature(field);
MetaData cmdr = retrieval.getComponentMetaData(sis);
if (cmdr != null)
{
for(AnnotationPlugin plugin : fieldAnnotationPlugins)
{
if (isApplyPhase)
plugin.applyAnnotation(field, cmdr, visitor);
else
plugin.cleanAnnotation(field, cmdr, visitor);
}
}
else if (trace)
log.trace("No annotations for field " + field.getName());
}
}
}
else if (trace)
log.trace("No properties");