com.vaadin.flow.component.
Class WebComponentExporterFactory.DefaultWebComponentExporterFactory<C extends Component>
Type Parameters:
C
- type of the component to export
All Implemented Interfaces:
Enclosing interface:
WebComponentExporterFactory<C extends Component>
Default factory implementation which uses an exporter class to instantiate it using its default constructor.
Author:
Vaadin Ltd
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.WebComponentExporterFactory
WebComponentExporterFactory.DefaultWebComponentExporterFactory<C extends Component>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWebComponentExporterFactory
(Class<? extends WebComponentExporter<C>> exporterClass) Creates a
WebComponentConfiguration
from the providedWebComponentExporter
class. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a new
WebComponentExporter
instance and configures the tag name of the web component created based on this exporter.
-
Constructor Details
-
DefaultWebComponentExporterFactory
Creates a
WebComponentConfiguration
from the providedWebComponentExporter
class.Parameters:
exporterClass
- exporter class, notnull
Throws:
NullPointerException
- whenexporterClass
isnull
-
-
Method Details
-
create
Description copied from interface:
WebComponentExporterFactory
Creates a new
WebComponentExporter
instance and configures the tag name of the web component created based on this exporter.Specified by:
create
in interfaceWebComponentExporterFactory<C extends Component>
Returns:
an exporter instance
See Also:
-