View Javadoc

1   /* $Id: AbstractRegistryQuerier.java,v 1.4 2004/09/01 15:42:26 jdt Exp $
2    *
3    * Copyright (C) AstroGrid. All rights reserved.
4    *
5    * This software is published under the terms of the AstroGrid 
6    * Software License version 1.2, a copy of which has been included 
7    * with this distribution in the LICENSE.txt file. 
8    * Created on Jul 30, 2004
9    */
10  package org.astrogrid.applications.http.registry;
11  
12  import java.io.IOException;
13  import java.util.Collection;
14  import java.util.HashMap;
15  import java.util.Map;
16  
17  /***
18   * Contains stuff likely to be common to all RegistryQueriers...maintains a List
19   * of WebHttpApplications etc
20   * 
21   * @author jdt
22   */
23  public abstract class AbstractRegistryQuerier implements RegistryQuerier {
24  
25      protected Map applications = new HashMap();
26  
27      /***
28       * Returns a list of  HttpApplication beans. 
29       */
30      public Collection getHttpApplications() throws IOException {
31          return applications.values();
32      }
33  
34  }