@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.
|
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
""
, which will cause
com.vaadin.DefaultWidgetSet
to be used unless overridden by
an init parameter or unless an automatically generated
AppWidgetset
is used.Copyright © 2023 Vaadin Ltd. All rights reserved.