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) Default Constructor.FrontendDependencies
(ClassFinder finder, boolean generateEmbeddableWebComponents) Secondary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.FrontendDependencies
(ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags) Tertiary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.FrontendDependencies
(ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags, boolean reactEnabled) -
Method Summary
Modifier and TypeMethodDescriptionGet all Java classes considered when looking for used dependencies.getCss()
Get all the CSS files used by the application.Get all npm packages needed only for development.Get all entryPoints in the application.protected final ClassFinder
protected 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 theAbstractTheme
instance used in the application.Get theThemeDefinition
of the application.protected final boolean
isExperimental
(String className) protected boolean
shouldVisit
(String className) toString()
-
Field Details
-
LUMO
- See Also:
-
ERROR_INVALID_LOAD_DEPENDENCIES_ANNOTATION
-
ERROR_INVALID_PWA_ANNOTATION
-
-
Constructor Details
-
FrontendDependencies
Default Constructor.- Parameters:
finder
- the class finder
-
FrontendDependencies
Secondary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.- Parameters:
finder
- the class findergenerateEmbeddableWebComponents
-true
checks theWebComponentExporter
classes for dependencies.true
is default forFrontendDependencies(ClassFinder)
-
FrontendDependencies
public FrontendDependencies(ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags) Tertiary constructor, which allows declaring whether embeddable web components should be checked for resource dependencies.- Parameters:
finder
- the class findergenerateEmbeddableWebComponents
-true
checks theWebComponentExporter
classes for dependencies.true
is 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:FrontendDependenciesScanner
Get all npm packages needed only for development.- Returns:
- the `devDependencies` packages
-
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 theThemeDefinition
of the application.- Returns:
- the theme definition
-
getTheme
Get theAbstractTheme
instance used in the application.- Returns:
- the theme instance
-
shouldVisit
-
toString
-
getFinder
-
isExperimental
-
getLumoTheme
-