code cleaning, new config
[mir.git] / source / mircoders / module / ModuleSchwerpunkt.java
index 9aeb965..6b9df4e 100755 (executable)
 
 package mircoders.module;
 
-import java.io.*;
-import java.lang.*;
-import java.util.*;
-import java.sql.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
+import mir.log.LoggerWrapper;
+import mir.module.AbstractModule;
+import mir.module.ModuleException;
+import mir.storage.StorageObject;
+import mir.storage.StorageObjectFailure;
+import mircoders.storage.DatabaseFeature;
+import freemarker.template.SimpleList;
 
-import freemarker.template.*;
-
-import mir.servlet.*;
-import mir.module.*;
-import mir.entity.*;
-import mir.misc.*;
-import mir.storage.*;
-
-import mir.entity.*;
-import mircoders.storage.*;
 /*
  *  Feature -
  *
@@ -57,25 +48,20 @@ import mircoders.storage.*;
 
 public class ModuleSchwerpunkt extends AbstractModule
 {
-               static Logfile theLog;
-
-               public ModuleSchwerpunkt(StorageObject theStorage) {
+  static LoggerWrapper logger = new LoggerWrapper("Module.Feature");
 
-                       this.theStorage = theStorage;
+  public ModuleSchwerpunkt(StorageObject theStorage) {
 
-       if (theLog == null)
-       theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Schwerpunkt.Logfile"));
+    this.theStorage = theStorage;
+  }
 
-               }
-
-               public SimpleList getSchwerpunktAsSimpleList()
-      throws ModuleException {
-      try {
-                         return ((DatabaseFeature)theStorage).getPopupData();
-      } catch (StorageObjectException e) {
-        throw new ModuleException(e.toString());
-      }
-               }
+  public SimpleList getSchwerpunktAsSimpleList() throws ModuleException {
+    try {
+      return ((DatabaseFeature)theStorage).getPopupData();
+    }
+    catch (StorageObjectFailure e) {
+      throw new ModuleException(e.toString());
+    }
+  }
 }
 
-