public class ApplicationRunner extends java.lang.Object
ApplicationRunneris used to start an RWT application with the given
ApplicationConfigurationin the given
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
ApplicationConfiguration defined in the init-parameter
org.eclipse.rap.applicationConfiguration will be started by the
When a custom
ServletContextListener is used, the
ApplicationRunner is usually constructed and started in the
contextInitialized() method and stopped in the
|Modifier and Type||Field and Description|
|Constructor and Description|
Constructs a new instance of this class given an application configuration and the servlet context it is bound to.
|Modifier and Type||Method and Description|
Starts the application if it is not running.
Stops the application if it is running.
public ApplicationRunner(ApplicationConfiguration configuration, ServletContext servletContext)
configuration- the configuration for the application to start. Must not be
servletContext- the servlet context this application is bound to. Must not be
public void start()
public void stop()
public ApplicationContext getApplicationContext()
ApplicationContextof the running application that is controlled by this application runner. If the application is not running, this method will return
ApplicationContextof the running application or
nullif the application is not running
Copyright (c) EclipseSource and others 2002, 2015.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0
Copyright (c) EclipseSource and others 2002, 2015. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0