|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface VaadinServletConfiguration
Annotation for configuring subclasses of 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.
| Required Element Summary | |
|---|---|
boolean |
productionMode
Whether Vaadin is in production mode. |
java.lang.Class<? extends UI> |
ui
Gets the default UI class to use for the servlet. |
| Optional Element Summary | |
|---|---|
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. |
java.lang.String |
widgetset
The default widgetset to use for the servlet. |
| Element Detail |
|---|
@VaadinServletConfiguration.InitParameterName(value="productionMode") public abstract boolean productionMode
DeploymentConfiguration.isProductionMode()@VaadinServletConfiguration.InitParameterName(value="UI") public abstract java.lang.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 java.lang.String widgetset
com.vaadin.DefaultWidgetSet.
@Deprecated @VaadinServletConfiguration.InitParameterName(value="legacyPropertyToString") public abstract DeploymentConfiguration.LegacyProperyToStringMode legacyPropertyToStringMode
DeploymentConfiguration.LegacyProperyToStringMode.DISABLED
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||