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
ConstructorsConstructorDescriptionDefaultWebComponentExporterFactory(Class<? extends WebComponentExporter<C>> exporterClass) Creates aWebComponentConfigurationfrom the providedWebComponentExporterclass. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a newWebComponentExporterinstance and configures the tag name of the web component created based on this exporter.
-
Constructor Details
-
DefaultWebComponentExporterFactory
Creates aWebComponentConfigurationfrom the providedWebComponentExporterclass.- Parameters:
exporterClass- exporter class, notnull- Throws:
NullPointerException- whenexporterClassisnull
-
-
Method Details
-
create
Description copied from interface:WebComponentExporterFactoryCreates a newWebComponentExporterinstance and configures the tag name of the web component created based on this exporter.- Specified by:
createin interfaceWebComponentExporterFactory<C extends Component>- Returns:
- an exporter instance
- See Also:
-