arez.annotations.PostDispose Maven / Gradle / Ivy
package arez.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Annotation to identify method invoked after disposing element.
* At most 1 method should be annotated with this annotation.
* The PostDispose method is the last method invoked during dispose operation and it occurs within the scope
* of the transaction that dispose is occurring within.
*
* The method that is annotated with @PostDispose must comply with the additional 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 PostDispose
{
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy