View Javadoc

1   package org.apache.fulcrum.testcontainer;
2   
3   /*
4    * Copyright 2004 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License")
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
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  }