001/* 002 * BioJava development code 003 * 004 * This code may be freely distributed and modified under the 005 * terms of the GNU Lesser General Public Licence. This should 006 * be distributed with the code. If you do not have a copy, 007 * see: 008 * 009 * http://www.gnu.org/copyleft/lesser.html 010 * 011 * Copyright for this code is held jointly by the individual 012 * authors. These should be listed in @author doc comments. 013 * 014 * For more information on the BioJava project and its aims, 015 * or to join the biojava-l mailing list, visit the home page 016 * at: 017 * 018 * http://www.biojava.org/ 019 * 020 */ 021 022package org.biojava.bio.program.blast2html; 023 024import java.util.ArrayList; 025import java.util.List; 026 027 028/** 029 * A simple default <code>URLGeneratorFactory</code> which returns 030 * a single <code>NcbiDatabaseURLGenerator</code> instance. 031 * 032 * Primary author - 033 * Colin Hardman (CAT) 034 * Other authors - 035 * Tim Dilks (CAT) 036 * Simon Brocklehurst (CAT) 037 * Stuart Johnston (CAT) 038 * Lawerence Bower (CAT) 039 * Derek Crockford (CAT) 040 * Neil Benn (CAT) 041 * 042 * Copyright 2001 Cambridge Antibody Technology Group plc. 043 * 044 * This code released to the biojava project, May 2001 045 * under the LGPL license. 046 * 047 * @author Cambridge Antibody Technology Group plc 048 * @version 1.0 049 */ 050public class DefaultURLGeneratorFactory implements URLGeneratorFactory { 051 052 private static List oList = (List) new ArrayList(); 053 054 { 055 // oList.add( new EbiDatabaseURLGenerator() ); 056 oList.add( new NcbiDatabaseURLGenerator() ); 057 } 058 059 public List getDatabaseURLGenerators() { 060 return oList; 061 } 062}