]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/DefaultExecutionSpec.java
Security
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / DefaultExecutionSpec.java
index af0afc416739211df779743d4e08b3434401e346..1f66686f5680d89d47c85c32d74217e0c77c87fe 100644 (file)
@@ -78,7 +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);
+                                       if (log.isTraceEnabled())
+                                               log.debug("Found " + choices.size() + " choices for "
+                                                               + rsa + " in spec " + name);
+
+                                       rsa.setChoices(choices);
                                }
                        }
                }
@@ -98,6 +103,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;
        }