Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/WebApplicationProxy.java')
-rw-r--r--jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/WebApplicationProxy.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/WebApplicationProxy.java b/jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/WebApplicationProxy.java
new file mode 100644
index 0000000000..9be016fa2e
--- /dev/null
+++ b/jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/WebApplicationProxy.java
@@ -0,0 +1,47 @@
+//
+// ========================================================================
+// Copyright (c) 1995-2012 Sabre Holdings.
+// ------------------------------------------------------------------------
+// All rights reserved. This program and the accompanying materials
+// are made available under the terms of the Eclipse Public License v1.0
+// and Apache License v2.0 which accompanies this distribution.
+//
+// The Eclipse Public License is available at
+// http://www.eclipse.org/legal/epl-v10.html
+//
+// The Apache License v2.0 is available at
+// http://www.opensource.org/licenses/apache2.0.php
+//
+// You may elect to redistribute this code under either of these licenses.
+// ========================================================================
+//
+
+
+package org.eclipse.jetty.ant.utils;
+
+import org.eclipse.jetty.server.handler.ContextHandlerCollection;
+
+public interface WebApplicationProxy
+{
+
+ public Object getProxiedObject();
+
+ /**
+ * Starts this web application context.
+ */
+ public void start();
+
+ /**
+ * Stops this web application context.
+ */
+ public void stop();
+
+ /**
+ * Creates a new Jetty web application context from this object.
+ *
+ * @param contexts collection of context this application should be added
+ * to.
+ */
+ public void createApplicationContext(ContextHandlerCollection contexts);
+
+}

Back to the top