com.sun.enterprise.web
Class WebApplication

java.lang.Object
  extended by com.sun.enterprise.web.WebApplication
All Implemented Interfaces:
ApplicationContainer<WebBundleDescriptor>

public class WebApplication
extends java.lang.Object
implements ApplicationContainer<WebBundleDescriptor>


Field Summary
protected static java.util.logging.Logger logger
           
protected static java.util.ResourceBundle rb
           
 
Constructor Summary
WebApplication(WebContainer container, WebModuleConfig config, ApplicationConfigInfo appConfigInfo)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Returns the class loader associated with this application
 WebBundleDescriptor getDescriptor()
          Returns the deployment descriptor associated with this application
 java.util.Set<WebModule> getWebModules()
          Gets a set of all the WebModule instances (one per virtual server deployment) of this WebApplication.
 boolean resume()
          Resumes this application on all virtual servers.
 boolean start(ApplicationContext appContext)
           
 boolean stop(ApplicationContext stopContext)
           
 boolean suspend()
          Suspends this application on all virtual servers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final java.util.logging.Logger logger

rb

protected static final java.util.ResourceBundle rb
Constructor Detail

WebApplication

public WebApplication(WebContainer container,
                      WebModuleConfig config,
                      ApplicationConfigInfo appConfigInfo)
Method Detail

start

public boolean start(ApplicationContext appContext)
              throws java.lang.Exception
Specified by:
start in interface ApplicationContainer<WebBundleDescriptor>
Throws:
java.lang.Exception

stop

public boolean stop(ApplicationContext stopContext)
Specified by:
stop in interface ApplicationContainer<WebBundleDescriptor>

suspend

public boolean suspend()
Suspends this application on all virtual servers.

Specified by:
suspend in interface ApplicationContainer<WebBundleDescriptor>

resume

public boolean resume()
               throws java.lang.Exception
Resumes this application on all virtual servers.

Specified by:
resume in interface ApplicationContainer<WebBundleDescriptor>
Throws:
java.lang.Exception

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the class loader associated with this application

Specified by:
getClassLoader in interface ApplicationContainer<WebBundleDescriptor>
Returns:
ClassLoader for this app

getWebModules

public java.util.Set<WebModule> getWebModules()
Gets a set of all the WebModule instances (one per virtual server deployment) of this WebApplication.

For each WebModule in the returned set, the corresponding ServletContext may be obtained by calling WebModule#getServletContext


getDescriptor

public WebBundleDescriptor getDescriptor()
Returns the deployment descriptor associated with this application

Specified by:
getDescriptor in interface ApplicationContainer<WebBundleDescriptor>
Returns:
deployment descriptor if they exist or null if not


Copyright © 2012 GlassFish Community. All Rights Reserved.