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
StructureElement treeSElement = element;\r
elements.add(treeSElement);\r
paths.add(path);\r
- log.debug("Registered " + path + " (label: '"\r
- + treeSElement.getLabel() + "', 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