]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/DefaultSRegistry.java
Various fixes so that SLC example works again
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / structure / DefaultSRegistry.java
index f59fc65b7416d27ab1965e2ca39309f6a47562e1..44b4a7a986928e26bdff41c919f9f8a757579806 100644 (file)
@@ -7,7 +7,7 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;\r
 \r
 /** Default implementation of a <code>StructureRegistry</code>. */\r
-public class DefaultSRegistry implements StructureRegistry {\r
+public class DefaultSRegistry implements StructureRegistry<StructurePath> {\r
        private static Log log = LogFactory.getLog(DefaultSRegistry.class);\r
 \r
        private List<StructureElement> elements = new Vector<StructureElement>();\r
@@ -28,9 +28,11 @@ public class DefaultSRegistry implements StructureRegistry {
                StructureElement treeSElement = element;\r
                elements.add(treeSElement);\r
                paths.add(path);\r
-               log.debug("Registered " + path + " (desc: '"\r
-                               + treeSElement.getDescription() + "', position: "\r
-                               + elements.size() + ")");\r
+\r
+               if (log.isTraceEnabled())\r
+                       log.trace("Registered " + path + " (label: '"\r
+                                       + treeSElement.getLabel() + "', position: "\r
+                                       + elements.size() + ")");\r
        }\r
 \r
        public StructureElement getElement(StructurePath path) {\r