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:
  • Constructor Details

  • Method Details

    • isProductionMode

      public boolean isProductionMode()
      Description copied from interface: AbstractConfiguration
      Returns whether Vaadin is in production mode.
      Specified by:
      isProductionMode in interface AbstractConfiguration
      Returns:
      true if in production mode, false otherwise.
    • getPropertyNames

      public Enumeration<String> getPropertyNames()
      Description copied from interface: ApplicationConfiguration
      Returns the names of the configuration properties as an Enumeration, or an empty Enumeration if there are o initialization parameters.
      Specified by:
      getPropertyNames in interface ApplicationConfiguration
      Returns:
      configuration properties as a Enumeration
    • getContext

      public VaadinContext getContext()
      Description copied from interface: ApplicationConfiguration
      The context which the configuration is based on.
      Specified by:
      getContext in interface ApplicationConfiguration
      Returns:
      the vaadin context
    • getFallbackChunk

      public FallbackChunk getFallbackChunk()
      Description copied from interface: ApplicationConfiguration
      Gets a fallback chunk for the application or null if it's not available.
      Specified by:
      getFallbackChunk in interface ApplicationConfiguration
      Returns:
      the application fallback chunk, may be null.
    • isDevModeSessionSerializationEnabled

      public boolean isDevModeSessionSerializationEnabled()
      Description copied from interface: ApplicationConfiguration
      Checks if development mode session serialization is enabled or not.

      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.

      Specified by:
      isDevModeSessionSerializationEnabled in interface ApplicationConfiguration
      Returns:
      true if dev mode session serialization is enabled, false otherwise