Package com.vaadin.flow.spring
Class VaadinConfigurationProperties
java.lang.Object
com.vaadin.flow.spring.VaadinConfigurationProperties
Configuration properties for Vaadin Spring Boot.
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a list of packages that are allowed for class scanning.Deprecated, for removal: This API element is subject to removal in a future version.Get a list of packages that are blocked for class scanning.getBun()
Gets the bun specific configuration.Gets the devmode specific configuration.getExcludedUrls
(org.springframework.core.env.Environment environment) Gets the excluded URLs using the given environment.Get a list of URL patterns that are not handled by the Vaadin servlet when it is mapped to the context root.Gets the frontend specific configuration.int
Returns timout after which a browser should be launched again on startup when in development mode.getPnpm()
Gets the pnpm specific configuration.getReact()
Gets the react specific configuration.Gets the url mapping for the Vaadin servlet.static String
getUrlMapping
(org.springframework.core.env.Environment environment) Gets the url mapping using the given environment.Deprecated, for removal: This API element is subject to removal in a future version.boolean
Returns if asynchronous operations are supported.boolean
Returns whether class scan caching between reloads when using Spring Boot DevTools should be enabled.boolean
Returns if a browser should be launched on startup when in development mode.boolean
Returns if servlet is loaded on startup.void
setAllowedPackages
(List<String> allowedPackages) Set list of packages to be scanned.void
setAsyncSupported
(boolean asyncSupported) SetsasyncSupported
property value.void
setBlacklistedPackages
(List<String> blockedPackages) Deprecated, for removal: This API element is subject to removal in a future version.void
setBlockedPackages
(List<String> blockedPackages) Set list of packages to ignore for class scanning.void
setDevmodeCaching
(boolean devmodeCaching) Sets whether class scan caching between reloads when using Spring Boot DevTools should be enabled.void
setExcludeUrls
(List<String> excludeUrls) Set a list of URL patterns that are not handled by the Vaadin servlet when it is mapped to the context root.void
setLaunchBrowser
(boolean launchBrowser) Sets whether a browser should be launched on startup when in development mode.void
setLaunchBrowserDelay
(int launchBrowser) Sets timout for launching a new browser on startup when in development mode.void
setLoadOnStartup
(boolean loadOnStartup) Sets whether servlet is loaded on startup.void
setUrlMapping
(String urlMapping) SetsurlMapping
property value.void
setWhitelistedPackages
(List<String> allowedPackages) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
VaadinConfigurationProperties
public VaadinConfigurationProperties()
-
-
Method Details
-
getUrlMapping
Gets the url mapping using the given environment. This is needed only when VaadinConfigurationProperties is not available for injection, e.g. in a condition.- Parameters:
environment
- the application environment- Returns:
- the url mapping or null if none is defined
-
getExcludedUrls
Gets the excluded URLs using the given environment. This is needed only when VaadinConfigurationProperties is not available for injection, e.g. when using Spring without Boot.- Parameters:
environment
- the application environment- Returns:
- the excluded URLs or null if none is defined
-
getUrlMapping
Gets the url mapping for the Vaadin servlet.- Returns:
- the url mapping
-
setUrlMapping
SetsurlMapping
property value.- Parameters:
urlMapping
- theurlMapping
property value
-
isAsyncSupported
public boolean isAsyncSupported()Returns if asynchronous operations are supported.- Returns:
- if async is supported
-
setAsyncSupported
public void setAsyncSupported(boolean asyncSupported) SetsasyncSupported
property value.- Parameters:
asyncSupported
- theasyncSupported
property value
-
isLoadOnStartup
public boolean isLoadOnStartup()Returns if servlet is loaded on startup.If the servlet is not loaded on startup then the first request to the server might be incorrectly handled by
VaadinWebSecurity
and access to a public view will be denied instead of allowed.- Returns:
- if servlet is loaded on startup
-
setLoadOnStartup
public void setLoadOnStartup(boolean loadOnStartup) Sets whether servlet is loaded on startup.If the servlet is not loaded on startup then the first request to the server might be incorrectly handled by
VaadinWebSecurity
and access to a public view will be denied instead of allowed.- Parameters:
loadOnStartup
-true
to load the servlet on startup,false
otherwise
-
isLaunchBrowser
public boolean isLaunchBrowser()Returns if a browser should be launched on startup when in development mode.- Returns:
- if a browser should be launched on startup when in development mode
-
setLaunchBrowser
public void setLaunchBrowser(boolean launchBrowser) Sets whether a browser should be launched on startup when in development mode.- Parameters:
launchBrowser
-true
to launch a browser on startup when in development mode,false
otherwise
-
getLaunchBrowserDelay
public int getLaunchBrowserDelay()Returns timout after which a browser should be launched again on startup when in development mode.- Returns:
- if a browser should be launched on startup when in development mode
-
setLaunchBrowserDelay
public void setLaunchBrowserDelay(int launchBrowser) Sets timout for launching a new browser on startup when in development mode.- Parameters:
launchBrowser
-true
to launch a browser on startup when in development mode,false
otherwise
-
isDevmodeCaching
public boolean isDevmodeCaching()Returns whether class scan caching between reloads when using Spring Boot DevTools should be enabled.- Returns:
- if class scan caching should be enabled
-
setDevmodeCaching
public void setDevmodeCaching(boolean devmodeCaching) Sets whether class scan caching between reloads when using Spring Boot DevTools should be enabled.- Parameters:
devmodeCaching
-true
to enable class scan caching when in development mode,false
otherwise
-
getBlockedPackages
Get a list of packages that are blocked for class scanning.- Returns:
- blocked packages
-
setBlockedPackages
Set list of packages to ignore for class scanning.- Parameters:
blockedPackages
- list of packages to ignore
-
getBlacklistedPackages
Deprecated, for removal: This API element is subject to removal in a future version.Get a list of packages that are blocked for class scanning.- Returns:
- blocked packages
-
setBlacklistedPackages
Deprecated, for removal: This API element is subject to removal in a future version.Set list of packages to ignore for class scanning.- Parameters:
blockedPackages
- list of packages to ignore
-
getAllowedPackages
Get a list of packages that are allowed for class scanning.- Returns:
- allowed packages
-
setAllowedPackages
Set list of packages to be scanned. IfallowedPackages
is set thenblockedPackages
is ignored.- Parameters:
allowedPackages
- list of packages to be scanned
-
getWhitelistedPackages
Deprecated, for removal: This API element is subject to removal in a future version.Get a list of packages that are allowed for class scanning.- Returns:
- allowed packages
-
setWhitelistedPackages
Deprecated, for removal: This API element is subject to removal in a future version.Set list of packages to be scanned. IfallowedPackages
is set thenblockedPackages
is ignored.- Parameters:
allowedPackages
- list of packages to be scanned
-
getExcludeUrls
Get a list of URL patterns that are not handled by the Vaadin servlet when it is mapped to the context root.- Returns:
- a list of url patterns to exclude
-
setExcludeUrls
Set a list of URL patterns that are not handled by the Vaadin servlet when it is mapped to the context root.- Parameters:
excludeUrls
- a list of url patterns to exclude
-
getDevmode
Gets the devmode specific configuration.- Returns:
- the devmode configuration
-
getPnpm
Gets the pnpm specific configuration.- Returns:
- the pnpm configuration
-
getBun
Gets the bun specific configuration.- Returns:
- the bun configuration
-
getReact
Gets the react specific configuration.- Returns:
- the react configuration
-
getFrontend
Gets the frontend specific configuration.- Returns:
- the frontend configuration
-
getBlockedPackages()