com.vaadin.flow.server.webcomponent.
Class WebComponentGenerator
Generates a client-side web component from a Java class.
For internal use only. May be renamed or removed in a future release.
Since:
2.0
Author:
Vaadin Ltd.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
generateModule
(WebComponentConfiguration<? extends Component> webComponentConfiguration, String frontendURI, String themeName) Generate web component html/JS for given tag and class.
static String
generateModule
(WebComponentExporterFactory<? extends Component> factory, String frontendURI, String themeName) Generate web component html/JS for given exporter factory.
-
Method Details
-
generateModule
public static String generateModule(WebComponentExporterFactory<? extends Component> factory, String frontendURI, String themeName) Generate web component html/JS for given exporter factory.
Parameters:
factory
- web component exporter factory, notnull
frontendURI
- the frontend resources URI, notnull
themeName
- the theme defined usingTheme
ornull
if not definedReturns:
generated web component html/JS to be served to the client
-
generateModule
public static String generateModule(WebComponentConfiguration<? extends Component> webComponentConfiguration, String frontendURI, String themeName) Generate web component html/JS for given tag and class.
Parameters:
webComponentConfiguration
- web component class implementation, notnull
frontendURI
- the frontend resources URI, notnull
themeName
- the theme defined usingTheme
ornull
if not definedReturns:
generated web component html/JS to be served to the client
-