1 package org.apache.fulcrum.testcontainer;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.avalon.framework.activity.Disposable;
20 import org.apache.avalon.framework.activity.Initializable;
21 import org.apache.avalon.framework.component.ComponentException;
22
23 /**
24 * This is a simple interface around the ECM and Yaafi containers
25 *
26 * @author <a href="mailto:epugh at opensourceconnections.com">Eric Pugh</a>
27 */
28 public interface Container extends Initializable, Disposable
29 {
30 /** Key used in the context for defining the application root */
31 public static String COMPONENT_APP_ROOT = "componentAppRoot";
32
33 /** Alternate Merlin Friendly Key used in the context for defining the application root */
34 public static String URN_AVALON_HOME = "urn:avalon:home";
35
36 /** Alternate Merlin Friendly Key used in the context for defining the application root */
37 public static String URN_AVALON_TEMP = "urn:avalon:temp";
38
39 public void startup(String configFileName, String roleFileName, String parametersFileName);
40
41 public Object lookup(String roleName) throws ComponentException;
42
43 public void release(Object component);
44
45
46 }