Package com.vaadin.flow.server.startup
Class DefaultApplicationConfigurationFactory.ApplicationConfigurationImpl
- java.lang.Object
-
- com.vaadin.flow.server.AbstractPropertyConfiguration
-
- com.vaadin.flow.server.startup.DefaultApplicationConfigurationFactory.ApplicationConfigurationImpl
-
- All Implemented Interfaces:
AbstractConfiguration,ApplicationConfiguration,Serializable
- Enclosing class:
- DefaultApplicationConfigurationFactory
protected static class DefaultApplicationConfigurationFactory.ApplicationConfigurationImpl extends AbstractPropertyConfiguration implements ApplicationConfiguration
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedApplicationConfigurationImpl(VaadinContext context, FallbackChunk fallbackChunk, Map<String,String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VaadinContextgetContext()The context which the configuration is based on.FallbackChunkgetFallbackChunk()Gets a fallback chunk for the application ornullif it's not available.Enumeration<String>getPropertyNames()Returns the names of the configuration properties as anEnumeration, or an emptyEnumerationif there are o initialization parameters.booleanisDevModeSessionSerializationEnabled()Checks if development mode session serialization is enabled or not.booleanisProductionMode()Returns whether Vaadin is in production mode.-
Methods inherited from class com.vaadin.flow.server.AbstractPropertyConfiguration
getApplicationOrSystemProperty, getApplicationProperty, getApplicationProperty, getBooleanProperty, getProperties, getStringProperty, getSystemProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.server.AbstractConfiguration
enableDevServer, getBooleanProperty, getBuildFolder, getFlowResourcesFolder, getJavaResourceFolder, getStringProperty, isGlobalPnpm, isPnpmEnabled, isUsageStatisticsEnabled, isXsrfProtectionEnabled, reuseDevServer, useV14Bootstrap
-
Methods inherited from interface com.vaadin.flow.server.startup.ApplicationConfiguration
disableAutomaticServletRegistration
-
-
-
-
Constructor Detail
-
ApplicationConfigurationImpl
protected ApplicationConfigurationImpl(VaadinContext context, FallbackChunk fallbackChunk, Map<String,String> properties)
-
-
Method Detail
-
isProductionMode
public boolean isProductionMode()
Description copied from interface:AbstractConfigurationReturns whether Vaadin is in production mode.- Specified by:
isProductionModein interfaceAbstractConfiguration- Returns:
- true if in production mode, false otherwise.
-
getPropertyNames
public Enumeration<String> getPropertyNames()
Description copied from interface:ApplicationConfigurationReturns the names of the configuration properties as anEnumeration, or an emptyEnumerationif there are o initialization parameters.- Specified by:
getPropertyNamesin interfaceApplicationConfiguration- Returns:
- configuration properties as a
Enumeration
-
getContext
public VaadinContext getContext()
Description copied from interface:ApplicationConfigurationThe context which the configuration is based on.- Specified by:
getContextin interfaceApplicationConfiguration- Returns:
- the vaadin context
-
getFallbackChunk
public FallbackChunk getFallbackChunk()
Description copied from interface:ApplicationConfigurationGets a fallback chunk for the application ornullif it's not available.- Specified by:
getFallbackChunkin interfaceApplicationConfiguration- Returns:
- the application fallback chunk, may be
null.
-
isDevModeSessionSerializationEnabled
public boolean isDevModeSessionSerializationEnabled()
Description copied from interface:ApplicationConfigurationChecks 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.
- Specified by:
isDevModeSessionSerializationEnabledin interfaceApplicationConfiguration- Returns:
trueif dev mode session serialization is enabled,falseotherwise
-
-