arez.annotations.ComponentIdRef Maven / Gradle / Ivy
package arez.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* 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 {@link ComponentId} or an
int
.
* - Must be accessible to the class annotated by the {@link ArezComponent} annotation.
*
*/
@Documented
@Target( ElementType.METHOD )
public @interface ComponentIdRef
{
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy