Annotation Interface ComponentIdRef


Marks a template method that returns the Id of the component.

The method that is annotated with this annotation must also comply with the following constraints:

  • Must not be annotated with any other arez annotation
  • Must be abstract
  • Must not throw any exceptions
  • Must return a value that has the same type as returned by the method annotated by ComponentId or an int.
  • Must be accessible to the class annotated by the ArezComponent annotation.