/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
- * Copyright (C) 2015 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
import java.util.Iterator;
import java.util.Map;
-public class DatastoreRegistry
+import jalview.log.JLoggerLog4j;
+
+public class DatastoreRegistry implements AutoCloseable
{
- protected static org.apache.log4j.Logger log = org.apache.log4j.Logger
- .getLogger(DatastoreRegistry.class);
+ protected static JLoggerLog4j log = JLoggerLog4j
+ .getLogger(DatastoreRegistry.class.getCanonicalName());
/**
* map between Datastore objects and the objects they are handling- used to
}
@Override
- protected void finalize() throws Throwable
+ public void close()
{
if (dsObjReg != null)
{
{
dsItemReg.clear();
}
- super.finalize();
+ // super.finalize();
}
}