public static interface Design.ComponentFactory extends Serializable
Design.DefaultComponentFactory will
use Class.forName(className).newInstance(), which might not
be suitable e.g. in an OSGi environment or if the Component instances
should be created as managed CDI beans.
Use Design.setComponentFactory(ComponentFactory) to configure
Vaadin to use a custom component factory.
| 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.
|
Component createComponent(String fullyQualifiedClassName, DesignContext context)
fullyQualifiedClassName - the fully qualified name of the component to createcontext - the design context for which the component is createdCopyright © 2018 Vaadin Ltd. All rights reserved.