Package com.vaadin.flow.component
Class WebComponentExporterFactory.DefaultWebComponentExporterFactory<C extends Component>
java.lang.Object
com.vaadin.flow.component.WebComponentExporterFactory.DefaultWebComponentExporterFactory<C>
- Type Parameters:
C
- type of the component to export
- All Implemented Interfaces:
WebComponentExporterFactory<C>
,Serializable
- Enclosing interface:
- WebComponentExporterFactory<C extends Component>
public static class WebComponentExporterFactory.DefaultWebComponentExporterFactory<C extends Component>
extends Object
implements WebComponentExporterFactory<C>
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
ConstructorDescriptionDefaultWebComponentExporterFactory
(Class<? extends WebComponentExporter<C>> exporterClass) Creates aWebComponentConfiguration
from the providedWebComponentExporter
class. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a newWebComponentExporter
instance and configures the tag name of the web component created based on this exporter.
-
Constructor Details
-
DefaultWebComponentExporterFactory
Creates aWebComponentConfiguration
from the providedWebComponentExporter
class.- Parameters:
exporterClass
- exporter class, notnull
- Throws:
NullPointerException
- whenexporterClass
isnull
-
-
Method Details
-
create
Description copied from interface:WebComponentExporterFactory
Creates a newWebComponentExporter
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:
-