Class ComponentMetaData

java.lang.Object
com.vaadin.flow.component.internal.ComponentMetaData

public class ComponentMetaData extends Object
Immutable meta data related to a component class.

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

Since:
1.0
Author:
Vaadin Ltd
  • Constructor Details

    • ComponentMetaData

      public ComponentMetaData(Class<? extends Component> componentClass)
      Scans the given component class and creates a new instance based on found annotations.
      Parameters:
      componentClass - the component class to scan
  • Method Details

    • getSynchronizedProperties

      public Collection<ComponentMetaData.SynchronizedPropertyInfo> getSynchronizedProperties()
      Gets the properties that are marked to be synchronized and corresponding events.

      Framework internal data, thus package-private.

      Returns:
      a collection of information objects about properties to be synchronized
    • getDependencyInfo

      public ComponentMetaData.DependencyInfo getDependencyInfo(VaadinService service)
      Gets the dependencies, defined using annotations (JsModule, JavaScript, StyleSheet and Uses).

      Framework internal data, thus package-private.

      Parameters:
      service - the service to use for resolving dependencies
      Returns:
      the dependencies for the given class