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