]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/DefaultExecutionSpec.java
Add log4j support
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / DefaultExecutionSpec.java
index af0afc416739211df779743d4e08b3434401e346..4e554a7d3f075fa59101ddeb384b171ee11a5cd0 100644 (file)
@@ -78,8 +78,12 @@ public class DefaultExecutionSpec implements ExecutionSpec, BeanNameAware,
                        if (attr instanceof RefSpecAttribute) {
                                RefSpecAttribute rsa = (RefSpecAttribute) attr;
                                if (rsa.getChoices() == null) {
-                                       rsa.setChoices(buildRefValueChoices(rsa));
+                                       List<RefValueChoice> choices = buildRefValueChoices(rsa);
+                                       rsa.setChoices(choices);
                                }
+                               if (log.isTraceEnabled())
+                                       log.debug("Spec attr " + key + " has "
+                                                       + rsa.getChoices().size() + " choices");
                        }
                }
        }
@@ -98,6 +102,11 @@ public class DefaultExecutionSpec implements ExecutionSpec, BeanNameAware,
                        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;
        }