org.apache.geronimo.osgi.web.extender
Class WebApplication

java.lang.Object
  extended by org.apache.geronimo.osgi.web.extender.WebApplication
All Implemented Interfaces:
Runnable

public class WebApplication
extends Object
implements Runnable

An instance of a WAB deployed to an available Web Container instance.

Version:
$Rev: 1142027 $, $Date: 2011-07-02 03:06:06 +0800 (Sat, 02 Jul 2011) $

Constructor Summary
WebApplication(WebContainerExtender extender, org.osgi.framework.Bundle bundle, String contextPath)
          Construct a WebApplicationImp object to represent a WAB-resident application.
 
Method Summary
 org.osgi.framework.Bundle getBundle()
          Provide access to the bundle where the application resides.
 String getContextPath()
           
 void run()
          Run the application deployment process in a separate thread.
 void schedule()
          Schedule this handler for deployment processing.
 void undeploy()
          Undeploy a web application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApplication

public WebApplication(WebContainerExtender extender,
                      org.osgi.framework.Bundle bundle,
                      String contextPath)
Construct a WebApplicationImp object to represent a WAB-resident application.

Parameters:
bundle - The bundle containing the WAB.
contextPath - The context path from the WAB headers.
Method Detail

getContextPath

public String getContextPath()

getBundle

public org.osgi.framework.Bundle getBundle()
Provide access to the bundle where the application resides.

Returns:
The Bundle instance for the WAB.

schedule

public void schedule()
Schedule this handler for deployment processing.


run

public void run()
Run the application deployment process in a separate thread.

Specified by:
run in interface Runnable

undeploy

public void undeploy()
Undeploy a web application.



Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.