*/
public class DatabaseBreaking extends Database implements StorageObject{
-
private static DatabaseBreaking 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 DatabaseBreaking getInstance() throws StorageObjectFailure {
if (instance == null) {
instance = new DatabaseBreaking();
return instance;
}
- private DatabaseBreaking() throws StorageObjectFailure
- {
+ private DatabaseBreaking() throws StorageObjectFailure {
super();
+
logger = new LoggerWrapper("Database.Breaking");
- this.mainTable="breaking";
+ mainTable="breaking";
}
-
-
}