Class FrontendWebComponentGenerator
java.lang.Object
io.jmix.flowui.devserver.frontend.FrontendWebComponentGenerator
- All Implemented Interfaces:
- Serializable
Generates embeddable web component files in npm mode, hiding the complexity
 caused by using a different class loader.
 Uses 
WebComponentModulesWriter to
 generate web component modules files from
 WebComponentExporter or
 WebComponentExporterFactory implementations found by
 ClassFinder.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionFrontendWebComponentGenerator(com.vaadin.flow.server.frontend.scanner.ClassFinder finder) Creates a new instances and stores thefinderto be used for locatingWebComponentModulesWriterandWebComponentExporter/WebComponentExporterFactoryclasses.
- 
Method SummaryModifier and TypeMethodDescriptiongenerateWebComponents(File outputDirectory, com.vaadin.flow.theme.ThemeDefinition theme) CollectsWebComponentModulesWriterclass and classes that extendWebComponentExporter/WebComponentExporterFactoryusingfinder.
- 
Constructor Details- 
FrontendWebComponentGeneratorpublic FrontendWebComponentGenerator(com.vaadin.flow.server.frontend.scanner.ClassFinder finder) Creates a new instances and stores thefinderto be used for locatingWebComponentModulesWriterandWebComponentExporter/WebComponentExporterFactoryclasses.- Parameters:
- finder-- ClassFinderimplementation
 
 
- 
- 
Method Details- 
generateWebComponentspublic Set<File> generateWebComponents(File outputDirectory, com.vaadin.flow.theme.ThemeDefinition theme) CollectsWebComponentModulesWriterclass and classes that extendWebComponentExporter/WebComponentExporterFactoryusingfinder. Generates web component modules and places the into theoutputDirectory.- Parameters:
- outputDirectory- target directory for the web component module files
- theme- the theme defined using- Themeor- nullif not defined
- Returns:
- generated files
- Throws:
- IllegalStateException- if- findercannot locate required classes
 
 
-