01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.servlet;
11:
12: import org.mmbase.module.core.MMBase;
13: import javax.servlet.ServletException;
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 e);
40:
41: }
|