1 package jalview.io.gff;
3 import jalview.bin.Cache;
4 import jalview.ext.so.SequenceOntology;
7 * A factory class that returns a model of the Sequence Ontology. If the user's
8 * Jalview properties file has the line <br>
9 * USE_SO_LITE = true <br>
10 * then a hard-coded subset will be used, otherwise the full ontology (as
11 * downloaded at a point in time).
16 public class SequenceOntologyFactory
18 private static SequenceOntologyI instance;
20 public static synchronized SequenceOntologyI getInstance()
24 if (Cache.getDefault("USE_SO_LITE", false))
26 instance = new SequenceOntologyLite();
30 instance = new SequenceOntology();
36 public static void setInstance(SequenceOntologyI so)