if (attr instanceof RefSpecAttribute) {
RefSpecAttribute rsa = (RefSpecAttribute) attr;
if (rsa.getChoices() == null) {
- rsa.setChoices(buildRefValueChoices(rsa));
+ List<RefValueChoice> choices = buildRefValueChoices(rsa);
+ if (log.isTraceEnabled())
+ log.debug("Found " + choices.size() + " choices for "
+ + rsa + " in spec " + name);
+
+ rsa.setChoices(choices);
}
}
}
RefValueChoice choice = new RefValueChoice();
choice.setName(beanName);
choice.setDescription(bd.getDescription());
+ if (log.isTraceEnabled())
+ log.debug("Found choice " + beanName + " for " + rsa);
+
+ choices.add(choice);
+
}
return choices;
}