public static class Design.DefaultComponentFactory extends Object implements Design.ComponentFactory
Design.ComponentFactory, using
Class.forName(className).newInstance() for finding the
component class and creating a component instance.| Constructor and Description |
|---|
DefaultComponentFactory() |
| Modifier and Type | Method and Description |
|---|---|
Component |
createComponent(String fullyQualifiedClassName,
DesignContext context)
Creates a component based on the fully qualified name derived from
the tag name in the design.
|
protected Class<? extends Component> |
resolveComponentClass(String qualifiedClassName,
DesignContext context)
Resolves a component class based on the fully qualified name of the
class.
|
public Component createComponent(String fullyQualifiedClassName, DesignContext context)
Design.ComponentFactorycreateComponent in interface Design.ComponentFactoryfullyQualifiedClassName - the fully qualified name of the component to createcontext - the design context for which the component is createdprotected Class<? extends Component> resolveComponentClass(String qualifiedClassName, DesignContext context)
qualifiedClassName - the fully qualified name of the resolved classcontext - the design context for which the class is resolvedCopyright © 2020 Vaadin Ltd. All rights reserved.