arez.annotations.OnDeactivate Maven / Gradle / Ivy
package arez.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import javax.annotation.Nonnull;
/**
* Identifies method that is called when the ComputedValue changes to the INACTIVE state from any other state.
*
* The method must also conform to the following constraints:
*
* - Must not be annotated with any other arez annotation
* - Must have 0 parameters
* - Must not return a value
* - Must not be private
* - Must not be static
* - Must not be abstract
* - Must not throw exceptions
*
*/
@Documented
@Target( ElementType.METHOD )
public @interface OnDeactivate
{
/**
* Return the name of the ComputedValue that this method is associated with.
* This value will be derived if the method name matches the pattern "on[Name]Deactivate",
* otherwise it must be specified.
*
* @return the name of the ComputedValue.
*/
@Nonnull
String name() default "";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy