From: rk Date: Wed, 29 Aug 2001 15:01:52 +0000 (+0000) Subject: debugged false Class.forName. Changed mir to mircoders X-Git-Tag: prexmlproducerconfig~596 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=716ee167e6cab50959a72b2c02c244fe80d7a101;p=mir.git debugged false Class.forName. Changed mir to mircoders --- diff --git a/source/mir/storage/Database.java b/source/mir/storage/Database.java index b451061f..4f73324c 100755 --- a/source/mir/storage/Database.java +++ b/source/mir/storage/Database.java @@ -61,7 +61,6 @@ public class Database implements StorageObject { */ public Database() { theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Database.Logfile")); - theLog.printDebugInfo("-- inside database"); String database_username=Configuration.getProperty("Database.Username"); String database_password=Configuration.getProperty("Database.Password"); String database_host=Configuration.getProperty("Database.Host"); diff --git a/source/mircoders/module/ModuleBreaking.java b/source/mircoders/module/ModuleBreaking.java index 72d70674..12426c62 100755 --- a/source/mircoders/module/ModuleBreaking.java +++ b/source/mircoders/module/ModuleBreaking.java @@ -34,10 +34,8 @@ public class ModuleBreaking extends AbstractModule public ModuleBreaking (StorageObject theStorage) { - if (theLog == null) theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Breaking.Logfile")); if (theStorage == null) theLog.printWarning("ModuleBreaking -- StorageObject was null!"); - this.theStorage = theStorage; } diff --git a/source/mircoders/servlet/ServletModuleBreaking.java b/source/mircoders/servlet/ServletModuleBreaking.java index be350e3c..d8015dcf 100755 --- a/source/mircoders/servlet/ServletModuleBreaking.java +++ b/source/mircoders/servlet/ServletModuleBreaking.java @@ -34,7 +34,7 @@ public class ServletModuleBreaking extends ServletModule templateListString = Configuration.getProperty("ServletModule.Breaking.ListTemplate"); templateObjektString = Configuration.getProperty("ServletModule.Breaking.ObjektTemplate"); templateConfirmString = Configuration.getProperty("ServletModule.Breaking.ConfirmTemplate"); - try + try { DatabaseBreaking dbb = DatabaseBreaking.getInstance(); mainModule = new ModuleBreaking(dbb); } diff --git a/source/mircoders/storage/DatabaseBreaking.java b/source/mircoders/storage/DatabaseBreaking.java index 888bc4eb..cb789d84 100755 --- a/source/mircoders/storage/DatabaseBreaking.java +++ b/source/mircoders/storage/DatabaseBreaking.java @@ -32,15 +32,12 @@ public class DatabaseBreaking extends Database implements StorageObject{ private DatabaseBreaking() throws StorageObjectException { super(); - theLog.printDebugInfo("-- outside database"); this.cache = new HashMap(); this.theTable="breaking"; try { - this.theEntityClass = Class.forName("mir.entity.EntityBreaking"); + this.theEntityClass = Class.forName("mircoders.entity.EntityBreaking"); } catch (Exception e) { throw new StorageObjectException(e.toString()); } - - theLog.printDebugInfo("-- leaving dbb"); } diff --git a/source/mircoders/storage/DatabaseComment.java b/source/mircoders/storage/DatabaseComment.java index d819b114..25ada19e 100755 --- a/source/mircoders/storage/DatabaseComment.java +++ b/source/mircoders/storage/DatabaseComment.java @@ -37,7 +37,7 @@ public class DatabaseComment extends Database implements StorageObject{ this.cache = new HashMap(); this.theTable="comment"; try { - this.theEntityClass = Class.forName("mir.entity.EntityComment"); + this.theEntityClass = Class.forName("mircoders.entity.EntityComment"); } catch (Exception e) { throw new StorageObjectException(e.toString()); } } diff --git a/source/mircoders/storage/DatabaseContent.java b/source/mircoders/storage/DatabaseContent.java index 63468268..fd97ca24 100755 --- a/source/mircoders/storage/DatabaseContent.java +++ b/source/mircoders/storage/DatabaseContent.java @@ -45,7 +45,7 @@ public class DatabaseContent extends Database implements StorageObject { this.theCoreTable="media"; relationComments = new EntityRelation("id", "to_media", DatabaseComment.getInstance(), EntityRelation.TO_MANY); relationFeature = new EntityRelation("id", "to_feature", DatabaseFeature.getInstance(), EntityRelation.TO_ONE); - try { this.theEntityClass = Class.forName("mir.entity.EntityContent"); } + try { this.theEntityClass = Class.forName("mircoders.entity.EntityContent"); } catch (Exception e) { throw new StorageObjectException(e.toString()); } }