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.
|
default File |
getJavaResourceFolder()
Gets the folder where resource sources are stored.
|
String |
getStringProperty(String name,
String defaultValue)
Gets a configured property as a string.
|
default boolean |
isGlobalPnpm()
Returns whether globally installed pnpm is used or the default one (see
FrontendTools.DEFAULT_PNPM_VERSION). |
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 isGlobalPnpm()
FrontendTools.DEFAULT_PNPM_VERSION).true if globally installed pnpm is used, false if
the default one is used.default boolean isXsrfProtectionEnabled()
default String getBuildFolder()
Default value is target used by maven and the gradle plugin
will set it to build.
targetdefault 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-frontenddefault File getJavaResourceFolder()
Only available in development mode.
src/main/resources.Copyright © 2021. All rights reserved.