- private static DatabaseImageFormat instance;
- private static SimpleList publisherPopupData;
-
- // the following *has* to be sychronized cause this static method
- // could get preemted and we could end up with 2 instances of DatabaseFoo..
- // see the "Singletons with needles and thread" article at JavaWorld -mh
- public synchronized static DatabaseImageFormat getInstance()
- throws StorageObjectFailure
- {
- if (instance == null) {
- instance = new DatabaseImageFormat();
- instance.myselfDatabase = instance;
- }
- return instance;
- }
-
- private DatabaseImageFormat() throws StorageObjectFailure
- {
- super();
- this.hasTimestamp = false;
- this.theTable="img_format";
- }
-
- public SimpleList getPopupData()
- throws StorageObjectFailure { return getPopupData("name",true); }
-
-
+ private static DatabaseImageFormat instance;
+
+ // the following *has* to be sychronized cause this static method
+ // could get preemted and we could end up with 2 instances of DatabaseFoo..
+ // see the "Singletons with needles and thread" article at JavaWorld -mh
+ public synchronized static DatabaseImageFormat getInstance() {
+ if (instance == null) {
+ instance = new DatabaseImageFormat();
+ }
+ return instance;
+ }
+
+ private DatabaseImageFormat() {
+ super();
+ logger = new LoggerWrapper("Database.ImageFormat");
+ hasTimestamp = false;
+ theTable = "img_format";
+ }