KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > interfaces > Kernel


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.phoenix.interfaces;
9
10 import org.apache.avalon.framework.configuration.Configuration;
11 import org.apache.avalon.framework.logger.Logger;
12 import org.apache.avalon.phoenix.metadata.SarMetaData;
13 import java.io.File JavaDoc;
14
15 /**
16  * @author <a HREF="mailto:peter at apache.org">Peter Donald</a>
17  */

18 public interface Kernel
19 {
20     String JavaDoc ROLE = Kernel.class.getName();
21
22     /**
23      * Adds an application to the container
24      */

25     void addApplication( SarMetaData metaData,
26                          File JavaDoc workDirectory,
27                          ClassLoader JavaDoc classLoader,
28                          Logger hierarchy,
29                          Configuration server )
30         throws Exception JavaDoc;
31
32     /**
33      * Removes the application from the container
34      *
35      * @param name the name of application to remove
36      */

37     void removeApplication( String JavaDoc name )
38         throws Exception JavaDoc;
39
40
41     /**
42      * Gets the named application
43      *
44      * @param name the name of application
45      */

46     Application getApplication( String JavaDoc name );
47
48     /**
49      * Gets the list of applications running in the container
50      *
51      * @return applicationNames The array of application names
52      */

53     String JavaDoc[] getApplicationNames();
54 }
55
Popular Tags