Package org.eclipse.rap.rwt.application
Class ApplicationRunner
java.lang.Object
org.eclipse.rap.rwt.application.ApplicationRunner
An 
ApplicationRunner is used to start an RWT application with
 the given ApplicationConfiguration in the given
 ServletContext.
 
 In most cases, application developers don't have to use this class directly.
 Instead of this, the class RWTServletContextListener can be
 registered as a listener in the deployment descriptor (web.xml). In this
 case, the ApplicationConfiguration defined in the init-parameter
 org.eclipse.rap.applicationConfiguration will be started by the
 framework.
 
 When a custom ServletContextListener is used, the
 ApplicationRunner is usually constructed and started in the
 contextInitialized() method and stopped in the
 contextDestroyed() method.
 
- Since:
- 2.0
- See Also:
- 
- ApplicationConfiguration
- RWTServletContextListener
- javax.servlet.ServletContext
- javax.servlet.ServletContextListener
 
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionApplicationRunner(ApplicationConfiguration configuration, ServletContext servletContext) Constructs a new instance of this class given an application configuration and the servlet context it is bound to.
- 
Method Summary
- 
Field Details- 
RESOURCES
 
- 
- 
Constructor Details- 
ApplicationRunnerConstructs a new instance of this class given an application configuration and the servlet context it is bound to.- Parameters:
- configuration- the configuration for the application to start. Must not be- null.
- servletContext- the servlet context this application is bound to. Must not be- null.
 
 
- 
- 
Method Details- 
startpublic void start()Starts the application if it is not running. If the application is already running, this method does nothing.
- 
stoppublic void stop()Stops the application if it is running. If the application is not running, this method does nothing.
- 
getApplicationContextReturns theApplicationContextof the running application that is controlled by this application runner. If the application is not running, this method will returnnull.- Returns:
- the ApplicationContextof the running application ornullif the application is not running
- Since:
- 3.0
 
 
-