01: package org.rapla.framework;
02:
03: import java.net.URL;
04:
05: import org.apache.avalon.framework.configuration.Configuration;
06: import org.apache.avalon.framework.logger.Logger;
07:
08: public interface StartupEnvironment {
09: String ROLE = StartupEnvironment.class.getName();
10:
11: int EMBEDDED = 0;
12: int CONSOLE = 1;
13: int WEBSTART = 2;
14: int APPLET = 3;
15: int SERVLET = 4;
16:
17: Configuration getStartupConfiguration() throws RaplaException;
18:
19: URL getDownloadURL() throws RaplaException;
20:
21: /** either EMBEDDED, CONSOLE, WEBSTART, APPLET or SERVLET */
22: int getStartupMode();
23:
24: URL getContextRootURL() throws RaplaException;
25:
26: Logger getBootstrapLogger();
27: }
|