View Javadoc

1   /*$Id: SimpleComponentDescriptor.java,v 1.1 2004/05/04 11:00:12 nw Exp $
2    * Created on 07-Mar-2004
3    *
4    * Copyright (C) AstroGrid. All rights reserved.
5    *
6    * This software is published under the terms of the AstroGrid 
7    * Software License version 1.2, a copy of which has been included 
8    * with this distribution in the LICENSE.txt file.  
9    *
10  **/
11  package org.astrogrid.component.descriptor;
12  
13  import junit.framework.Test;
14  
15  /*** Handy stand-alone implementation of a component descriptor
16   * @author Noel Winstanley nw@jb.man.ac.uk 07-Mar-2004
17   *
18   */
19  public class SimpleComponentDescriptor implements ComponentDescriptor {
20      protected SimpleComponentDescriptor(){
21      }
22      /*** Construct a new SimpleComponentDescriptor
23       * 
24       */
25      public SimpleComponentDescriptor(String name,String description) {
26          this(name,description,null);
27      }
28          
29     public SimpleComponentDescriptor(String name,String description,Test test) {
30          this.test = test;
31          this.name = name;
32          this.description = description;
33      }
34      protected String name;
35      protected  String description;
36      protected Test test;
37      /***
38       * @see org.astrogrid.jes.component.ComponentDescriptor#getName()
39       */
40      public String getName() {
41          return name;
42      }
43      /***
44       * @see org.astrogrid.jes.component.ComponentDescriptor#getDescription()
45       */
46      public String getDescription() {
47          return description;
48      }
49      /***
50       * @see org.astrogrid.jes.component.ComponentDescriptor#getInstallationTest()
51       */
52      public Test getInstallationTest() {
53          return test;
54      }
55  }
56  
57  
58  /* 
59  $Log: SimpleComponentDescriptor.java,v $
60  Revision 1.1  2004/05/04 11:00:12  nw
61  moved pico-container component stuff from jes into common, so it can be used in cea too
62  
63  Revision 1.2  2004/03/15 23:45:07  nw
64  improved javadoc
65  
66  Revision 1.1  2004/03/15 01:30:06  nw
67  factored component descriptor out into separate package
68  
69  Revision 1.2  2004/03/07 21:04:38  nw
70  merged in nww-itn05-pico - adds picocontainer
71  
72  Revision 1.1.2.1  2004/03/07 20:39:47  nw
73  reimplemented component-manager framework to use picocontainer
74   
75  */