3 import jalview.ws.seqfetcher.ASequenceFetcher;
5 public class SequenceFetcherFactory
8 private static SequenceFetcher instance;
11 * Returns a new SequenceFetcher object, or a mock object if one has been set
15 public static ASequenceFetcher getSequenceFetcher()
17 return instance == null ? new SequenceFetcher() : instance;
21 * Set the instance object to use (intended for unit testing with mock
24 * Be sure to reset to null in the tearDown method of any tests!
28 public static void setSequenceFetcher(SequenceFetcher sf)