01: //========================================================================
02: //$Id: JettyPluginWebApplication.java 1246 2006-11-18 10:40:27Z janb $
03: //Copyright 2000-2004 Mort Bay Consulting Pty. Ltd.
04: //------------------------------------------------------------------------
05: //Licensed under the Apache License, Version 2.0 (the "License");
06: //you may not use this file except in compliance with the License.
07: //You may obtain a copy of the License at
08: //http://www.apache.org/licenses/LICENSE-2.0
09: //Unless required by applicable law or agreed to in writing, software
10: //distributed under the License is distributed on an "AS IS" BASIS,
11: //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: //See the License for the specific language governing permissions and
13: //limitations under the License.
14: //========================================================================
15:
16: package org.mortbay.jetty.plugin.util;
17:
18: import java.io.File;
19: import java.util.List;
20:
21: /**
22: * JettyPluginWebApplication
23: *
24: * Type to hide differences in API for various jetty
25: * versions. Eg there will be an impl of this class
26: * for jetty5 (proxying WebApplicationContext) and
27: * jetty6 (proxying WebAppContext).
28: *
29: */
30: public interface JettyPluginWebApplication extends Proxy {
31:
32: public void setContextPath(String path);
33:
34: public String getContextPath();
35:
36: public void setWebAppSrcDir(File webAppDir) throws Exception;
37:
38: public void setTempDirectory(File tmpDir);
39:
40: public void setWebDefaultXmlFile(File webDefaultXml)
41: throws Exception;
42:
43: public void setClassPathFiles(List classpathFiles);
44:
45: public void setWebXmlFile(File webxml);
46:
47: public void setJettyEnvXmlFile(File jettyEnvXml);
48:
49: public void setOverrideWebXmlFile(File overrideWebXml)
50: throws Exception;
51:
52: public void configure();
53:
54: public void start() throws Exception;
55:
56: public void stop() throws Exception;
57:
58: public Object getProxiedObject();
59:
60: }
|