Update of /cvsroot/xpg-xml/org/dinopolis/util
In directory usw-pr-cvs1:/tmp/cvs-serv17183
Modified Files:
DFactory.java
Log Message:
changed System.out to System.err, prettyfied messages
Index: DFactory.java
===================================================================
RCS file: /cvsroot/xpg-xml/org/dinopolis/util/DFactory.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** DFactory.java 1 Feb 2002 14:39:43 -0000 1.1.1.1
--- DFactory.java 7 Feb 2002 14:02:51 -0000 1.2
***************
*** 152,156 ****
Class ret_class = (Class)(cache_.get(partly_qualified_classname));
! System.out.println("IN DFACTORY; ret_class = "+ret_class);
try
--- 152,156 ----
Class ret_class = (Class)(cache_.get(partly_qualified_classname));
! System.err.println(this.getClass().getName() + ":>> return class = "+ret_class);
try
***************
*** 164,168 ****
{
StringBuffer buf = new StringBuffer();
! System.out.println("IN DFACTORY; path_ = "+path_[count]);
buf.append(path_[count]);
buf.append('.');
--- 164,168 ----
{
StringBuffer buf = new StringBuffer();
! System.err.println(this.getClass().getName() + ":>> path__ = "+path_[count]);
buf.append(path_[count]);
buf.append('.');
***************
*** 170,184 ****
String full_class_name = buf.toString();
! System.out.println("IN DFACTORY; full_class_name = "+full_class_name);
try
{
ret_class = Class.forName(full_class_name);
! System.out.println("IN DFACTORY; ret_class = "+ret_class);
cache_.put(partly_qualified_classname, ret_class);
Object obj = ret_class.newInstance();
if (obj == null)
! System.out.println("NULLLLLLLLL!!!!!");
else
! System.out.println("object = "+obj);
return(ret_class.newInstance());
}
--- 170,184 ----
String full_class_name = buf.toString();
! System.err.println(this.getClass().getName() + ":>> full_class_name = "+full_class_name);
try
{
ret_class = Class.forName(full_class_name);
! System.err.println(this.getClass().getName() + ":>> ret_class = "+ret_class);
cache_.put(partly_qualified_classname, ret_class);
Object obj = ret_class.newInstance();
if (obj == null)
! System.err.println(this.getClass().getName() + ":>> WARNING: Object is null!");
else
! System.err.println(this.getClass().getName() + ":>> object = "+obj);
return(ret_class.newInstance());
}
***************
*** 191,195 ****
catch (InstantiationException e)
{
! // this is not pritty good :((
// an InstantiationException should be declared in the
// signature of this method
--- 191,195 ----
catch (InstantiationException e)
{
! // FIXXME
// an InstantiationException should be declared in the
// signature of this method
***************
*** 198,202 ****
catch (IllegalAccessException e)
{
! // this is not pritty good :((
// an IllegalAccessException should be declared in the
// signature of this method
--- 198,202 ----
catch (IllegalAccessException e)
{
! // FIXXME
// an IllegalAccessException should be declared in the
// signature of this method
***************
*** 216,230 ****
}
}
-
-
-
-
-
-
-
-
-
-
-
-
--- 216,218 ----
|