public interface ApplicationLauncher
Instead of using the ApplicationLauncher directly, an ApplicationConfiguration
can be
provided as a service. For every available application configuration, the RWT OSGi integration
bundle will automatically start an application at an available HTTPService.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_CONTEXT_NAME
The name of a service property for an
ApplicationConfiguration service to define a
context name for the application. |
Modifier and Type | Method and Description |
---|---|
ApplicationReference |
launch(ApplicationConfiguration configuration,
HttpService httpService,
HttpContext httpContext,
java.lang.String contextName,
java.lang.String contextDirectory)
Launches an application with the given configuration at the given HTTPService.
|
static final java.lang.String PROPERTY_CONTEXT_NAME
ApplicationConfiguration
service to define a
context name for the application. For example, when an ApplicationConfiguration is registered
as a service with a property contextName
set to example
, its
entrypoints will be available at http://host/example/entrypointName
.
For declarative services, add this element to the component declaration:
<property name="contextName" type="String" value="example"/>
ApplicationReference launch(ApplicationConfiguration configuration, HttpService httpService, HttpContext httpContext, java.lang.String contextName, java.lang.String contextDirectory)
configuration
- the configuration of the application to starthttpService
- the http service to start the application athttpContext
- the http context to use, or null
to use the default contextcontextName
- the context name of the application, defines the first URL path segment to
the applicationcontextDirectory
- the name of a directory to store static web resources
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0