ruper2/src/java/core/org/krysalis/ruper/util/reference ReferenceTable.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/reference
In directory sc8-pr-cvs1:/tmp/cvs-serv11617/src/java/core/org/krysalis/ruper/util/reference

Modified Files:
	ReferenceTable.java 
Log Message:
Renamed Simple Logger to Standard (since it writes to StdOut)
More work on logging and messages

Index: ReferenceTable.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/reference/ReferenceTable.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ReferenceTable.java	4 Sep 2003 16:45:53 -0000	1.2
--- ReferenceTable.java	23 Sep 2003 00:19:17 -0000	1.3
***************
*** 4,16 ****
  package org.krysalis.ruper.util.reference;
  
  import java.util.HashMap;
  
  import org.krysalis.ruper.util.identity.GenericIdentifier;
  import org.krysalis.ruper.util.identity.GenericNamespace;
  
  /**
   * @author ajack
   */
! public class ReferenceTable {
  	private GenericNamespace m_namespace = null;
  	private HashMap m_table = new HashMap();
--- 4,19 ----
  package org.krysalis.ruper.util.reference;
  
+ import java.io.PrintWriter;
  import java.util.HashMap;
  
  import org.krysalis.ruper.util.identity.GenericIdentifier;
  import org.krysalis.ruper.util.identity.GenericNamespace;
+ import org.krysalis.version.util.debug.DebugUtils;
+ import org.krysalis.version.util.debug.Dumpable;
  
  /**
   * @author ajack
   */
! public class ReferenceTable implements Dumpable {
  	private GenericNamespace m_namespace = null;
  	private HashMap m_table = new HashMap();
***************
*** 41,44 ****
--- 44,56 ----
  		createReference(
  			new ReferenceProxy(new GenericIdentifier(m_namespace, id), object));
+ 	}
+ 
+ 	public void dump(PrintWriter out, int depth, boolean verbose) {
+ 		String indent = DebugUtils.getIndent(depth);
+ 
+ 		out.print(indent);
+ 		out.println(m_namespace);
+ 
+ 		DebugUtils.dump(out, depth + 1, "Table: ", verbose, m_table);
  	}
  }




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.