arez.annotations.ContextRef 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.ArezContext} instance for component.
*
* The method that is annotated with @ContextRef 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.ArezContext}.
*
*/
@Documented
@Target( ElementType.METHOD )
@Unsupported( "This is largely experimental and intended for framework users rather than casual users of the framework" )
public @interface ContextRef
{
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy