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

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

public class WebApplication
extends java.lang.Object
implements java.lang.Runnable

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

Version:
$Rev: 1213810 $, $Date: 2011-12-14 02:00:08 +0800 (Wed, 14 Dec 2011) $

Constructor Summary
WebApplication(WebContainerExtender extender, org.osgi.framework.Bundle bundle, java.lang.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.
 java.lang.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,
                      java.lang.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 java.lang.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 java.lang.Runnable

undeploy

public void undeploy()
Undeploy a web application.



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