X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2Fgff%2FSequenceOntologyFactory.java;h=acf90e7facdbc73a67b748f22f84cf8c94e872a7;hb=b4d15601e50bafd396bce2af9dded397e63cc8b8;hp=3eaa5d10a9ea18f0a4c4c085263bd50a4d494a2f;hpb=f9e3f75dec30e85fa177f0a5f952616fc677a1fc;p=jalview.git diff --git a/src/jalview/io/gff/SequenceOntologyFactory.java b/src/jalview/io/gff/SequenceOntologyFactory.java index 3eaa5d1..acf90e7 100644 --- a/src/jalview/io/gff/SequenceOntologyFactory.java +++ b/src/jalview/io/gff/SequenceOntologyFactory.java @@ -1,5 +1,18 @@ package jalview.io.gff; +import jalview.bin.Cache; +import jalview.ext.so.SequenceOntology; + +/** + * A factory class that returns a model of the Sequence Ontology. If the user's + * Jalview properties file has the line
+ * USE_SO_LITE = true
+ * then a hard-coded subset will be used, otherwise the full ontology (as + * downloaded at a point in time). + * + * @author gmcarstairs + * + */ public class SequenceOntologyFactory { private static SequenceOntologyI instance; @@ -8,8 +21,14 @@ public class SequenceOntologyFactory { if (instance == null) { - // instance = new SequenceOntology(); - instance = new SequenceOntologyLite(); + if (Cache.getDefault("USE_SO_LITE", false)) + { + instance = new SequenceOntologyLite(); + } + else + { + instance = new SequenceOntology(); + } } return instance; }