@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface VaadinServletConfiguration
VaadinServlet. For a
VaadinServlet class that has this annotation, the defined values are
read during initialization and will be available using
DeploymentConfiguration.getApplicationOrSystemProperty(String, String)
as well as from specific methods in DeploymentConfiguration. Init
params defined in web.xml or the @WebServlet
annotation take precedence over values defined in this annotation.| Modifier and Type | Required Element and Description |
|---|---|
boolean |
productionMode
Whether Vaadin is in production mode.
|
Class<? extends UI> |
ui
Gets the default UI class to use for the servlet.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
closeIdleSessions
Whether a session should be closed when all its open UIs have been idle
for longer than its configured maximum inactivity time.
|
int |
heartbeatInterval
The number of seconds between heartbeat requests of a UI, or a
non-positive number if heartbeat is disabled.
|
DeploymentConfiguration.LegacyProperyToStringMode |
legacyPropertyToStringMode
Deprecated.
as of 7.1, should only be used to ease migration
|
int |
resourceCacheTime
The time resources can be cached in the browser, in seconds.
|
String |
widgetset
The default widgetset to use for the servlet.
|
@VaadinServletConfiguration.InitParameterName(value="productionMode") public abstract boolean productionMode
DeploymentConfiguration.isProductionMode()@VaadinServletConfiguration.InitParameterName(value="UI") public abstract Class<? extends UI> ui
@VaadinServletConfiguration.InitParameterName(value="resourceCacheTime") public abstract int resourceCacheTime
DeploymentConfiguration.getResourceCacheTime()@VaadinServletConfiguration.InitParameterName(value="heartbeatInterval") public abstract int heartbeatInterval
DeploymentConfiguration.getHeartbeatInterval()@VaadinServletConfiguration.InitParameterName(value="closeIdleSessions") public abstract boolean closeIdleSessions
false.DeploymentConfiguration.isCloseIdleSessions()@VaadinServletConfiguration.InitParameterName(value="widgetset") public abstract String widgetset
com.vaadin.DefaultWidgetSet.@Deprecated @VaadinServletConfiguration.InitParameterName(value="legacyPropertyToString") public abstract DeploymentConfiguration.LegacyProperyToStringMode legacyPropertyToStringMode
DeploymentConfiguration.LegacyProperyToStringMode.DISABLEDCopyright © 2016 Vaadin Ltd. All rights reserved.