Package com.sun.enterprise.web
Class WebApplication
- java.lang.Object
-
- com.sun.enterprise.web.WebApplication
-
- All Implemented Interfaces:
ApplicationContainer<WebBundleDescriptorImpl>
public class WebApplication extends Object implements ApplicationContainer<WebBundleDescriptorImpl>
-
-
Field Summary
Fields Modifier and Type Field Description protected static ResourceBundle
rb
-
Constructor Summary
Constructors Constructor Description WebApplication(WebContainer container, WebModuleConfig config, ApplicationConfigInfo appConfigInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
Returns the class loader associated with this applicationWebBundleDescriptorImpl
getDescriptor()
Returns the deployment descriptor associated with this applicationSet<WebModule>
getWebModules()
Gets a set of all the WebModule instances (one per virtual server deployment) of this WebApplication.boolean
reload(ApplicationContext context)
Reloads an application container.boolean
resume()
Resumes this application on all virtual servers.boolean
start(ApplicationContext appContext)
Starts an application container.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
-
Methods inherited from interface org.glassfish.api.deployment.ApplicationContainer
initialize
-
-
-
-
Field Detail
-
rb
protected static final ResourceBundle rb
-
-
Constructor Detail
-
WebApplication
public WebApplication(WebContainer container, WebModuleConfig config, ApplicationConfigInfo appConfigInfo)
-
-
Method Detail
-
start
public boolean start(ApplicationContext appContext) throws Exception
Description copied from interface:ApplicationContainer
Starts an application container. ContractProvider starting should not throw an exception but rather should use their prefered Logger instance to log any issue they encounter while starting. Returning false from a start mean that the container failed to start- Specified by:
start
in interfaceApplicationContainer<WebBundleDescriptorImpl>
- Parameters:
appContext
- the start up context- Returns:
- true if the container startup was successful.
- Throws:
Exception
- if this application container could not be started
-
stop
public boolean stop(ApplicationContext stopContext)
- Specified by:
stop
in interfaceApplicationContainer<WebBundleDescriptorImpl>
-
reload
public boolean reload(ApplicationContext context) throws Exception
Description copied from interface:ApplicationContainer
Reloads an application container.- Specified by:
reload
in interfaceApplicationContainer<WebBundleDescriptorImpl>
- Parameters:
context
- the context- Returns:
- true if the container reload was successful.
- Throws:
Exception
- if this application container could not be reloaded
-
suspend
public boolean suspend()
Suspends this application on all virtual servers.- Specified by:
suspend
in interfaceApplicationContainer<WebBundleDescriptorImpl>
- Returns:
- true if suspending was successful, false otherwise.
-
resume
public boolean resume() throws Exception
Resumes this application on all virtual servers.- Specified by:
resume
in interfaceApplicationContainer<WebBundleDescriptorImpl>
- Returns:
- true if resumption was successful, false otherwise
- Throws:
Exception
- if this application container could not be resumed
-
getClassLoader
public ClassLoader getClassLoader()
Returns the class loader associated with this application- Specified by:
getClassLoader
in interfaceApplicationContainer<WebBundleDescriptorImpl>
- Returns:
- ClassLoader for this app
-
getWebModules
public 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 WebBundleDescriptorImpl getDescriptor()
Returns the deployment descriptor associated with this application- Specified by:
getDescriptor
in interfaceApplicationContainer<WebBundleDescriptorImpl>
- Returns:
- deployment descriptor if they exist or null if not
-
-