Class FrontendDependencies
java.lang.Object
com.vaadin.flow.server.frontend.scanner.FrontendDependencies
- All Implemented Interfaces:
FrontendDependenciesScanner,Serializable
Represents the class dependency tree of the application.
For internal use only. May be renamed or removed in a future release.
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner
FrontendDependenciesScanner.FrontendDependenciesScannerFactory -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFrontendDependencies(ClassFinder finder) Deprecated.FrontendDependencies(ClassFinder finder, boolean generateEmbeddableWebComponents) Deprecated.FrontendDependencies(ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags) Deprecated.FrontendDependencies(ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags, boolean reactEnabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet all npm package assets for the application.Get all Java classes considered when looking for used dependencies.getCss()Get all the CSS files used by the application.Get all npm packages assets needed only for development.Get all npm packages needed only for development.Get all entryPoints in the application.protected final ClassFinderprotected Class<? extends AbstractTheme>Get all JS modules needed for run the application.Get all JS modules needed in development mode.Get all npm packages the application depends on.Get the PWA configuration of the application.Get all the JS files used by the application.Get all the JS files needed in development mode.getTheme()Get theAbstractThemeinstance used in the application.Get theThemeDefinitionof the application.protected final booleanisDisabledExperimentalClass(String className) protected booleanshouldVisit(String className) toString()
-
Field Details
-
LUMO
- See Also:
-
ERROR_INVALID_LOAD_DEPENDENCIES_ANNOTATION
-
ERROR_INVALID_PWA_ANNOTATION
-
-
Constructor Details
-
FrontendDependencies
Deprecated.Default Constructor.- Parameters:
finder- the class finder
-
FrontendDependencies
@Deprecated public FrontendDependencies(ClassFinder finder, boolean generateEmbeddableWebComponents) Deprecated.Secondary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.- Parameters:
finder- the class findergenerateEmbeddableWebComponents-truechecks theWebComponentExporterclasses for dependencies.trueis default forFrontendDependencies(ClassFinder)
-
FrontendDependencies
@Deprecated public FrontendDependencies(ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags) Deprecated.Tertiary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.- Parameters:
finder- the class findergenerateEmbeddableWebComponents-truechecks theWebComponentExporterclasses for dependencies.trueis default forFrontendDependencies(ClassFinder)featureFlags- available feature flags and their status
-
FrontendDependencies
public FrontendDependencies(ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags, boolean reactEnabled)
-
-
Method Details
-
getPackages
Get all npm packages the application depends on.- Returns:
- the set of npm packages
-
getDevPackages
Description copied from interface:FrontendDependenciesScannerGet all npm packages needed only for development.- Returns:
- the `devDependencies` packages
-
getAssets
Description copied from interface:FrontendDependenciesScannerGet all npm package assets for the application.- Returns:
- the npm packages assets
-
getDevAssets
Description copied from interface:FrontendDependenciesScannerGet all npm packages assets needed only for development.- Returns:
- the `dev` npm package assets
-
getPwaConfiguration
Get the PWA configuration of the application.- Returns:
- the PWA configuration
-
getModules
Get all JS modules needed for run the application.- Returns:
- list of JS modules
-
getModulesDevelopment
Get all JS modules needed in development mode.- Returns:
- list of JS modules
-
getScripts
Get all the JS files used by the application.- Returns:
- the set of JS files
-
getScriptsDevelopment
Get all the JS files needed in development mode.- Returns:
- the set of JS files
-
getCss
Get all the CSS files used by the application.- Returns:
- the set of CSS files
-
getClasses
Get all Java classes considered when looking for used dependencies.- Returns:
- the set of JS files
-
getEntryPoints
Get all entryPoints in the application.- Returns:
- the set of JS files
-
getThemeDefinition
Get theThemeDefinitionof the application.- Returns:
- the theme definition
-
getTheme
Get theAbstractThemeinstance used in the application.- Returns:
- the theme instance
-
shouldVisit
-
toString
-
getFinder
-
isDisabledExperimentalClass
-
getLumoTheme
-
addValues
-
FrontendDependencies(ClassFinder, boolean, FeatureFlags, boolean)instead.