[Registry-dev] svn commit r6525 -
trunk/registry/java/modules/core/src/main/java/org/wso2/registry/inmemory
svn at wso2.org
svn at wso2.org
Thu Aug 23 05:35:21 PDT 2007
Author: deepal
Date: Thu Aug 23 05:35:18 2007
New Revision: 6525
Modified:
trunk/registry/java/modules/core/src/main/java/org/wso2/registry/inmemory/InMemoryRegistry.java
Log:
we should not use system.out
Modified: trunk/registry/java/modules/core/src/main/java/org/wso2/registry/inmemory/InMemoryRegistry.java
==============================================================================
--- trunk/registry/java/modules/core/src/main/java/org/wso2/registry/inmemory/InMemoryRegistry.java (original)
+++ trunk/registry/java/modules/core/src/main/java/org/wso2/registry/inmemory/InMemoryRegistry.java Thu Aug 23 05:35:18 2007
@@ -28,6 +28,8 @@
import org.wso2.registry.comments.Comment;
import org.wso2.registry.resources.Resource;
import org.wso2.registry.resources.Directory;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import java.util.Map;
import java.util.HashMap;
@@ -40,7 +42,7 @@
* cache for a persistance registry.
*/
public class InMemoryRegistry implements Registry {
-
+ protected static final Log log = LogFactory.getLog(InMemoryRegistry.class);
private TagManager tagManager = new TagManager(this);
private CommentManager commentManager = new CommentManager(this);
private RatingsManager ratingManager = new RatingsManager(this);
@@ -207,8 +209,7 @@
public void dump() {
for (Iterator iterator = registry.entrySet().iterator(); iterator.hasNext();) {
Map.Entry e = (Map.Entry) iterator.next();
-
- System.out.println(e.getKey() + " --> " + e.getValue());
+ log.info(e.getKey() + " --> " + e.getValue());
}
}
More information about the Registry-dev
mailing list