public class WebApplication extends Object implements ApplicationContainer<WebBundleDescriptorImpl>
| Modifier and Type | Field and Description |
|---|---|
protected static ResourceBundle |
rb |
| Constructor and Description |
|---|
WebApplication(WebContainer container,
WebModuleConfig config,
ApplicationConfigInfo appConfigInfo) |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Returns the class loader associated with this application
|
WebBundleDescriptorImpl |
getDescriptor()
Returns the deployment descriptor associated with this application
|
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)
Starts an application container.
|
boolean |
stop(ApplicationContext stopContext)
Stop the application container
|
boolean |
suspend()
Suspends this application on all virtual servers.
|
protected static final ResourceBundle rb
public WebApplication(WebContainer container, WebModuleConfig config, ApplicationConfigInfo appConfigInfo)
public boolean start(ApplicationContext appContext) throws Exception
ApplicationContainerstart in interface ApplicationContainer<WebBundleDescriptorImpl>appContext - the start up contextException - if this application container could not be startedpublic boolean stop(ApplicationContext stopContext)
ApplicationContainerstop in interface ApplicationContainer<WebBundleDescriptorImpl>public boolean suspend()
suspend in interface ApplicationContainer<WebBundleDescriptorImpl>public boolean resume()
throws Exception
resume in interface ApplicationContainer<WebBundleDescriptorImpl>Exception - if this application container could not be
resumedpublic ClassLoader getClassLoader()
getClassLoader in interface ApplicationContainer<WebBundleDescriptorImpl>public Set<WebModule> getWebModules()
For each WebModule in the returned set, the corresponding ServletContext may be obtained by calling WebModule#getServletContext
public WebBundleDescriptorImpl getDescriptor()
getDescriptor in interface ApplicationContainer<WebBundleDescriptorImpl>Copyright © 2017. All rights reserved.