1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.component;
12
13 import org.picocontainer.MutablePicoContainer;
14 import org.picocontainer.Startable;
15
16 import junit.framework.Test;
17
18 /***Interface to a container for components.
19 * <p>
20 * Based on an underlying <a href="http://www.picocontainer.org/">PicoContainer</a> implementation
21 * @author Noel Winstanley nw@jb.man.ac.uk 04-May-2004
22 *
23 */
24 public interface ComponentManager extends Startable{
25
26 /*** output human-readable description of contents of container as HTML
27 * <p>
28 * used for debugging / output to JSP
29 * Uses descriptions from components that implement the {@link org.astrogrid.jes.component.descriptor.ComponentDescriptor} interface*/
30 public abstract String informationHTML();
31 /*** output human-readable description of contents of container */
32 public abstract String information();
33 /*** return a suite of installation tests for the components in the container
34 * <p>
35 * this suite is the composition of all installation tests returned by objects in the container that implement the
36 * {@link org.astrogrid.jes.component.descriptor.ComponentDescriptor} interface
37 * */
38 public abstract Test getSuite();
39 /*** get the picocontainer that manages the components */
40 public abstract MutablePicoContainer getContainer();
41 }
42
43
44
45
46
47
48
49