]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc/src/main/java/org/argeo/slc/core/structure/DefaultSRegistry.java
Improve comments
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / structure / DefaultSRegistry.java
index 1cca17be4dc553434a307507cda89f1b6e436920..f59fc65b7416d27ab1965e2ca39309f6a47562e1 100644 (file)
@@ -6,7 +6,7 @@ import java.util.Vector;
 import org.apache.commons.logging.Log;\r
 import org.apache.commons.logging.LogFactory;\r
 \r
-/** Default implementation of a <code>StructureRegistry</code>.*/\r
+/** Default implementation of a <code>StructureRegistry</code>. */\r
 public class DefaultSRegistry implements StructureRegistry {\r
        private static Log log = LogFactory.getLog(DefaultSRegistry.class);\r
 \r
@@ -24,20 +24,15 @@ public class DefaultSRegistry implements StructureRegistry {
                return new Vector<StructurePath>(paths);\r
        }\r
 \r
-       public void register(StructurePath path,StructureElement element) {\r
+       public void register(StructurePath path, StructureElement element) {\r
                StructureElement treeSElement = element;\r
                elements.add(treeSElement);\r
-               paths.add( path);\r
-               log.debug("Registered " + path + " (desc: "\r
-                               + treeSElement.getDescription() + " position: "\r
+               paths.add(path);\r
+               log.debug("Registered " + path + " (desc: '"\r
+                               + treeSElement.getDescription() + "', position: "\r
                                + elements.size() + ")");\r
        }\r
 \r
-       public void register(StructurePath path,StructureAware structureAware) {\r
-               register(path,structureAware.getElement());\r
-               structureAware.onRegister(this,path);\r
-       }\r
-\r
        public StructureElement getElement(StructurePath path) {\r
                int index = paths.indexOf(path);\r
                if (index >= 0) {\r