@Retention(value=RUNTIME) @Target(value=TYPE) @Deprecated 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, Object, Function)
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
Deprecated.
Whether Vaadin is in production mode.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
closeIdleSessions
Deprecated.
Whether a session should be closed when all its open UIs have been idle
for longer than its configured maximum inactivity time.
|
boolean |
disableAutomaticServletRegistration
Deprecated.
Whether the framework should register automatic servlets for the
application or not.
|
int |
heartbeatInterval
Deprecated.
The number of seconds between heartbeat requests of a UI, or a
non-positive number if heartbeat is disabled.
|
Class<? extends UI> |
ui
Deprecated.
Gets the UI class 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="heartbeatInterval") public abstract int heartbeatInterval
DeploymentConfiguration.getHeartbeatInterval()
@VaadinServletConfiguration.InitParameterName(value="closeIdleSessions") public abstract boolean closeIdleSessions
false
.DeploymentConfiguration.isCloseIdleSessions()
@VaadinServletConfiguration.InitParameterName(value="disable.automatic.servlet.registration") public abstract boolean disableAutomaticServletRegistration
false
.DeploymentConfiguration.disableAutomaticServletRegistration()
Copyright © 2023. All rights reserved.