Class FrontendDependenciesScanner.FrontendDependenciesScannerFactory
java.lang.Object
com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner.FrontendDependenciesScannerFactory
- Enclosing interface:
FrontendDependenciesScanner
Frontend dependencies scanner factory.
- Author:
- Vaadin Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateScanner(boolean allDependenciesScan, ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags, boolean reactEnabled, boolean productionMode) Produces scanner implementation based onallDependenciesScanvalue.
-
Constructor Details
-
FrontendDependenciesScannerFactory
public FrontendDependenciesScannerFactory()
-
-
Method Details
-
createScanner
public FrontendDependenciesScanner createScanner(boolean allDependenciesScan, ClassFinder finder, boolean generateEmbeddableWebComponents, FeatureFlags featureFlags, boolean reactEnabled, boolean productionMode) Produces scanner implementation based onallDependenciesScanvalue.- Parameters:
allDependenciesScan- iftruethen full classpath scanning strategy is used, otherwise byte scanning strategy is producedfinder- a class findergenerateEmbeddableWebComponents- checksWebComponentExporterclasses for dependencies iftrue, doesn't check otherwisefeatureFlags- available feature flags and their statusreactEnabled-trueif react is enabled,falseotherwiseproductionMode-trueif scanning for a production build, in which case the byte scanning strategy does not collect routes marked withRoute.developmentOnly(). The full classpath scanning strategy ignores this flag and includes those routes.- Returns:
- a scanner implementation strategy
-