Package com.vaadin.flow.plugin.base
Interface PluginAdapterBase
-
- All Known Subinterfaces:
PluginAdapterBuild
public interface PluginAdapterBaseGives access to access to plugin-spectific implementations and configurations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FileapplicationProperties()Application properties file in Spring project.StringbuildFolder()The folder where everything is built into.default LookupcreateLookup(ClassFinder classFinder)Creates aLookupfor theClassFinder.booleaneagerServerLoad()Whether or not insert the initial Uidl object in the bootstrap index.html.FilefrontendDirectory()A directory with project's frontend source files.FilegeneratedFolder()The folder where flow will put generated files that will be used by webpack.FilegeneratedTsFolder()The folder where flow will put TS API files for client projects.ClassFindergetClassFinder()TheClassFinderthat should be used.Set<File>getJarFiles()The Jar Files that would be searched.StringgetUseDeprecatedV14Bootstrapping()Whether or not we are running in legacy V14 bootstrap mode.booleanisDebugEnabled()Checks the debug Mode.booleanisJarProject()Indicates that it is a Jar Project.default booleanisUseDeprecatedV14Bootstrapping()Check if the plugin is running in legacy V14 bootstrap mode or not.FilejavaResourceFolder()Java resource folder.FilejavaSourceFolder()Java source folders for scanning.voidlogDebug(CharSequence debugMessage)Delegates a debug-Message to a logger.voidlogError(CharSequence warning, Throwable e)Delegates a error-Message to a logger.voidlogInfo(CharSequence infoMessage)Delegates a info-Message to a logger.voidlogWarn(CharSequence warningMessage)delegates a warning-Message to a logger.voidlogWarn(CharSequence warningMessage, Throwable throwable)Delegates a warning-Message to a logger.booleannodeAutoUpdate()Whether the alternative node may be autoupdated or not.URInodeDownloadRoot()Download node.js from this URL.StringnodeVersion()The node.js version to be used when node.js is installed automatically by Vaadin, for example `"v12.18.3"`.FilenpmFolder()The folder where `package.json` file is located.FileopenApiJsonFile()Default generated path of the OpenAPI json.booleanpnpmEnable()Instructs to use pnpm for installing npm frontend resources.List<String>postinstallPackages()Additional npm packages to run postinstall for.booleanproductionMode()Whether or not we are running in productionMode.PathprojectBaseDirectory()The projects root Directory.booleanrequireHomeNodeExec()Whether vaadin home node executable usage is forced.FileservletResourceOutputDirectory()Defines the output directory for generated non-served resources, such as the token file.booleanuseGlobalPnpm()Instructs to use globally installed pnpm tool or the default supported pnpm version.FilewebpackOutputDirectory()The folder where webpack should output index.js and other generated files.
-
-
-
Method Detail
-
applicationProperties
File applicationProperties()
Application properties file in Spring project.- Returns:
FileapplicationProperties
-
createLookup
default Lookup createLookup(ClassFinder classFinder)
Creates aLookupfor theClassFinder.- Parameters:
classFinder- implementation that will be registered for the serviceTxpe `ClassFinder`.- Returns:
Lookup
-
eagerServerLoad
boolean eagerServerLoad()
Whether or not insert the initial Uidl object in the bootstrap index.html.- Returns:
boolean
-
frontendDirectory
File frontendDirectory()
A directory with project's frontend source files.- Returns:
File
-
generatedFolder
File generatedFolder()
The folder where flow will put generated files that will be used by webpack.- Returns:
File
-
generatedTsFolder
File generatedTsFolder()
The folder where flow will put TS API files for client projects.- Returns:
File
-
getClassFinder
ClassFinder getClassFinder()
TheClassFinderthat should be used.- Returns:
ClassFinder
-
isJarProject
boolean isJarProject()
Indicates that it is a Jar Project.- Returns:
- boolean - indicates that it is a Jar Project
-
getUseDeprecatedV14Bootstrapping
String getUseDeprecatedV14Bootstrapping()
Whether or not we are running in legacy V14 bootstrap mode. True if defined or if it's set to true.- Returns:
String
-
isDebugEnabled
boolean isDebugEnabled()
Checks the debug Mode.- Returns:
- boolean
-
isUseDeprecatedV14Bootstrapping
default boolean isUseDeprecatedV14Bootstrapping()
Check if the plugin is running in legacy V14 bootstrap mode or not. Default: false.- Returns:
- true if the `useDeprecatedV14Bootstrapping` is empty or true.
-
logDebug
void logDebug(CharSequence debugMessage)
Delegates a debug-Message to a logger.- Parameters:
debugMessage- to be logged.
-
logInfo
void logInfo(CharSequence infoMessage)
Delegates a info-Message to a logger.- Parameters:
infoMessage- to be logged.
-
logWarn
void logWarn(CharSequence warningMessage)
delegates a warning-Message to a logger.- Parameters:
warningMessage- to be logged.
-
logWarn
void logWarn(CharSequence warningMessage, Throwable throwable)
Delegates a warning-Message to a logger.- Parameters:
warningMessage- to be logged.throwable- to be logged.
-
logError
void logError(CharSequence warning, Throwable e)
Delegates a error-Message to a logger.- Parameters:
warning- to be logged.e- to be logged.
-
nodeDownloadRoot
URI nodeDownloadRoot() throws URISyntaxException
Download node.js from this URL. Handy in heavily firewalled corporate environments where the node.js download can be provided from an intranet mirror. Defaults to null which will cause the downloader to useNodeInstaller.DEFAULT_NODEJS_DOWNLOAD_ROOT.Example:
"https://nodejs.org/dist/".- Returns:
- nodeDownloadRoot
- Throws:
URISyntaxException- - Could not build an URI from nodeDownloadRoot().
-
nodeAutoUpdate
boolean nodeAutoUpdate()
Whether the alternative node may be autoupdated or not.- Returns:
trueto update node if older than default
-
nodeVersion
String nodeVersion()
The node.js version to be used when node.js is installed automatically by Vaadin, for example `"v12.18.3"`. Defaults to null which uses the Vaadin-default node version - seeFrontendToolsfor details.- Returns:
- node Verrsion as String
-
npmFolder
File npmFolder()
The folder where `package.json` file is located. Default is project root dir.- Returns:
- boolean
-
openApiJsonFile
File openApiJsonFile()
Default generated path of the OpenAPI json.- Returns:
- boolean
-
pnpmEnable
boolean pnpmEnable()
Instructs to use pnpm for installing npm frontend resources.- Returns:
- boolean
-
useGlobalPnpm
boolean useGlobalPnpm()
Instructs to use globally installed pnpm tool or the default supported pnpm version.- Returns:
- boolean
-
productionMode
boolean productionMode()
Whether or not we are running in productionMode.- Returns:
- boolean
-
requireHomeNodeExec
boolean requireHomeNodeExec()
Whether vaadin home node executable usage is forced. If it's set totruethen vaadin home 'node' is checked and installed if it's absent. Then it will be used instead of globally 'node' or locally installed installed 'node'.- Returns:
- boolean
-
servletResourceOutputDirectory
File servletResourceOutputDirectory()
Defines the output directory for generated non-served resources, such as the token file.- Returns:
File
-
webpackOutputDirectory
File webpackOutputDirectory()
The folder where webpack should output index.js and other generated files.- Returns:
File
-
buildFolder
String buildFolder()
The folder where everything is built into.- Returns:
- build folder
-
-