JAL-3253 jalview.bin.Instance streamlining
[jalview.git] / src / jalview / ws / sifts / SiftsSettings.java
index 51f1175..8fd5300 100644 (file)
@@ -26,15 +26,13 @@ import java.util.Objects;
 
 public class SiftsSettings
 {
-  private boolean mapWithSifts = false;
-
-  private String siftDownloadDirectory;
-
-  private int cacheThresholdInDays;
 
-  private int failSafePIDThreshold;
-
-  private static SiftsSettings getInstance()
+  /**
+   * public only for testng
+   * 
+   * @return
+   */
+  public static SiftsSettings getInstance()
   {
     {
       Instance j = Instance.getInstance();
@@ -44,6 +42,20 @@ public class SiftsSettings
     }
 
   }
+
+  private SiftsSettings()
+  {
+    // singleton; use getInstance()
+  }
+
+  private boolean mapWithSifts = false;
+
+  private String siftDownloadDirectory;
+
+  private int cacheThresholdInDays;
+
+  private int failSafePIDThreshold;
+
   public static boolean isMapWithSifts()
   {
     return getInstance().mapWithSifts;