public interface AbstractConfiguration extends Serializable
Modifier and Type | Method and Description |
---|---|
default boolean |
enableDevServer()
Get if the dev server should be enabled.
|
boolean |
getBooleanProperty(String name,
boolean defaultValue)
Gets a configured property as a boolean.
|
default String |
getBuildFolder()
Return the defined build folder for the used build system.
|
default String |
getFlowResourcesFolder()
Get the location for flow resources inside the build folder.
|
String |
getStringProperty(String name,
String defaultValue)
Gets a configured property as a string.
|
default boolean |
isPnpmEnabled()
Returns whether pnpm is enabled or not.
|
boolean |
isProductionMode()
Returns whether Vaadin is in production mode.
|
default boolean |
isXsrfProtectionEnabled()
Returns whether cross-site request forgery protection is enabled.
|
default boolean |
reuseDevServer()
Get if the dev server should be reused on each reload.
|
default boolean |
useV14Bootstrap()
Returns whether Vaadin is running in useDeprecatedV14Bootstrapping.
|
boolean isProductionMode()
default boolean enableDevServer()
default boolean reuseDevServer()
default boolean useV14Bootstrap()
String getStringProperty(String name, String defaultValue)
name
- The simple of the property, in some contexts, lookup might be
performed using variations of the provided name.defaultValue
- the default value that should be used if no value has been
definedboolean getBooleanProperty(String name, boolean defaultValue)
name
- The simple of the property, in some contexts, lookup might be
performed using variations of the provided name.defaultValue
- the default value that should be used if no value has been
defineddefault boolean isPnpmEnabled()
true
if enabled, false
if notdefault boolean isXsrfProtectionEnabled()
default String getBuildFolder()
Default value is target
used by maven and the gradle plugin
will set it to build
.
target
default String getFlowResourcesFolder()
Default will be target/flow-frontend
where target is the
defined buildFolder see getBuildFolder()
.
Note! The path is made using Paths.get which will use File.separator that is OS dependent.
target/flow-frontend
Copyright © 2021. All rights reserved.