arez.annotations.ComponentRef Maven / Gradle / Ivy
package arez.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import org.realityforge.anodoc.Unsupported;
/**
* Marks a template method that returns the {@link arez.Component} instance for the component.
*
* The method that is annotated with @ComponentRef must also comply with the following constraints:
*
* - Must not be annotated with any other arez annotation
* - Must not be private
* - Must not be static
* - Must not be final
* - Must be abstract
* - Must not throw any exceptions
* - Must return an instance of {@link arez.Component}.
*
*/
@Documented
@Target( ElementType.METHOD )
@Unsupported( "This is largely experimental and intended for framework users rather than casual users of the framework" )
public @interface ComponentRef
{
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy