Merge branch 'develop' into task/JAL-2196pdbeProperties
[jalview.git] / src / jalview / io / gff / SequenceOntologyFactory.java
1 package jalview.io.gff;
2
3
4 /**
5  * A factory class that returns a model of the Sequence Ontology. By default a
6  * hard-coded subset is used (for the applet, or testing), or setInstance() can
7  * be used to set full Ontology data.
8  * 
9  * @author gmcarstairs
10  *
11  */
12 public class SequenceOntologyFactory
13 {
14   private static SequenceOntologyI instance;
15
16   public static synchronized SequenceOntologyI getInstance()
17   {
18     if (instance == null)
19     {
20       instance = new SequenceOntologyLite();
21     }
22     return instance;
23   }
24
25   public static void setInstance(SequenceOntologyI so)
26   {
27     instance = so;
28   }
29 }