public interface ApplicationConfiguration extends AbstractConfiguration
Configuration is based on VaadinContext
which provides application
level data in contrast to DeploymentConfiguration
which provides a
Servlet
level configuration.
Modifier and Type | Method and Description |
---|---|
static ApplicationConfiguration |
get(VaadinContext context)
Gets a configuration instance for the given {code context}.
|
VaadinContext |
getContext()
The context which the configuration is based on.
|
FallbackChunk |
getFallbackChunk()
Gets a fallback chunk for the application or
null if it's not
available. |
Enumeration<String> |
getPropertyNames()
Returns the names of the configuration properties as an
Enumeration , or an empty Enumeration if there
are o initialization parameters. |
boolean |
isDevModeSessionSerializationEnabled()
Checks if development mode session serialization is enabled or not.
|
enableDevServer, getBooleanProperty, getBuildFolder, getFlowResourcesFolder, getStringProperty, isPnpmEnabled, isProductionMode, isXsrfProtectionEnabled, reuseDevServer, useV14Bootstrap
static ApplicationConfiguration get(VaadinContext context)
context
- the context to get the configuration forcontext
Enumeration<String> getPropertyNames()
Enumeration
, or an empty Enumeration
if there
are o initialization parameters.Enumeration
VaadinContext getContext()
FallbackChunk getFallbackChunk()
null
if it's not
available.null
.boolean isDevModeSessionSerializationEnabled()
Disabling session serialization means all its
UI
instances won't be serialized. This
might be needed if one or more UI
's are not serializable
and, thus, the whole http session might be discarded, making an
authentication or other sensitive data stored in the session to get lost,
which is not acceptable in most of the cases.
By default session serialization is disabled in development mode.
true
if dev mode session serialization is enabled,
false
otherwiseCopyright © 2021. All rights reserved.