Class ModelDescriptor<T extends TemplateModel>

java.lang.Object
com.vaadin.flow.templatemodel.BeanModelType<T>
com.vaadin.flow.templatemodel.ModelDescriptor<T>
Type Parameters:
T - the template model type used by this descriptor
All Implemented Interfaces:
ComplexModelType<T>, ModelType, Serializable

@Deprecated public class ModelDescriptor<T extends TemplateModel> extends BeanModelType<T>
Deprecated.
Template model and model types are not supported for lit template, but you can use @Id mapping and the component API or the element API with property synchronization instead. Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
Describes the model type of a template class.

For internal use only. May be renamed or removed in a future release.

Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Method Details

    • get

      public static <T extends TemplateModel> ModelDescriptor<T> get(Class<T> modelType)
      Deprecated.
      Gets the model descriptor for a model type.
      Type Parameters:
      T - the model type
      Parameters:
      modelType - the model type to find a descriptor, not null
      Returns:
      the model descriptor derived from the provided model type, not null