KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > servlet > MMBaseStarter


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.servlet;
11
12 import org.mmbase.module.core.MMBase;
13 import javax.servlet.ServletException JavaDoc;
14
15 /**
16  * Used in combo with MMBaseStartThread, which uses the methods of this interface to inform its starter about the results.
17  *
18  * @version $Id: MMBaseStarter.java,v 1.2 2005/02/11 12:36:05 michiel Exp $
19  * @author Michiel Meeuwissen
20  * @since MMBase-1.7
21  */

22 public interface MMBaseStarter {
23
24     /**
25      * Returns the currently set MMBase object.
26      * @return the MMBase instance or null.
27      */

28     MMBase getMMBase();
29
30     /**
31      * Set MMBase object after initializion, in the caller.
32      */

33     void setMMBase(MMBase mmb);
34
35     /**
36      * If something went wrong (an exception occured), the caller may is informed by a call to this
37      * method. (It may ignore it).
38      */

39     void setInitException(ServletException JavaDoc e);
40
41 }
42     
43
Popular Tags