Package com.vaadin.flow.server.startup
Interface ApplicationConfiguration
- All Superinterfaces:
AbstractConfiguration,Serializable
- All Known Implementing Classes:
DefaultApplicationConfigurationFactory.ApplicationConfigurationImpl
Configuration on the application level.
Configuration is based on VaadinContext which provides application
level data in contrast to DeploymentConfiguration which provides a
container level configuration (e.g. Servlet).
- Since:
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDetermines if Flow should automatically register servlets.static ApplicationConfigurationget(VaadinContext context) Gets a configuration instance for the given {code context}.The context which the configuration is based on.Returns the names of the configuration properties as anEnumeration, or an emptyEnumerationif there are o initialization parameters.booleanChecks if development mode session serialization is enabled or not.Methods inherited from interface com.vaadin.flow.server.AbstractConfiguration
getBooleanProperty, getBuildFolder, getFrontendFolder, getJavaResourceFolder, getJavaSourceFolder, getMode, getProjectFolder, getStringProperty, isBunEnabled, isGlobalPnpm, isPnpmEnabled, isProductionMode, isUsageStatisticsEnabled, isXsrfProtectionEnabled, reuseDevServer
-
Method Details
-
get
Gets a configuration instance for the given {code context}.- Parameters:
context- the context to get the configuration for- Returns:
- the application level configuration for the given
context
-
getPropertyNames
Enumeration<String> getPropertyNames()Returns the names of the configuration properties as anEnumeration, or an emptyEnumerationif there are o initialization parameters.- Returns:
- configuration properties as a
Enumeration
-
getContext
VaadinContext getContext()The context which the configuration is based on.- Returns:
- the vaadin context
-
isDevModeSessionSerializationEnabled
boolean isDevModeSessionSerializationEnabled()Checks if development mode session serialization is enabled or not.Disabling session serialization means all its
UIinstances won't be serialized. This might be needed if one or moreUI'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.
- Returns:
trueif dev mode session serialization is enabled,falseotherwise
-
disableAutomaticServletRegistration
default boolean disableAutomaticServletRegistration()Determines if Flow should automatically register servlets. For more information on the servlets registered, refer toServletDeployerjavadoc. User can explicitly disable automatic servlet registration by setting theInitParameters.DISABLE_AUTOMATIC_SERVLET_REGISTRATIONproperty totrue.- Returns:
trueif Flow should not automatically register servlets- See Also:
-