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 ResourceBundlerb
-
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 ClassLoadergetClassLoader()Returns the class loader associated with this applicationWebBundleDescriptorImplgetDescriptor()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.booleanreload(ApplicationContext context)Reloads an application container.booleanresume()Resumes this application on all virtual servers.booleanstart(ApplicationContext appContext)Starts an application container.booleanstop(ApplicationContext stopContext)booleansuspend()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:ApplicationContainerStarts 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:
startin 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:
stopin interfaceApplicationContainer<WebBundleDescriptorImpl>
-
reload
public boolean reload(ApplicationContext context) throws Exception
Description copied from interface:ApplicationContainerReloads an application container.- Specified by:
reloadin 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:
suspendin interfaceApplicationContainer<WebBundleDescriptorImpl>- Returns:
- true if suspending was successful, false otherwise.
-
resume
public boolean resume() throws ExceptionResumes this application on all virtual servers.- Specified by:
resumein 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:
getClassLoaderin 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:
getDescriptorin interfaceApplicationContainer<WebBundleDescriptorImpl>- Returns:
- deployment descriptor if they exist or null if not
-
-