All Downloads are FREE. Search and download functionalities are using the official Maven repository.

arez.annotations.PostDispose Maven / Gradle / Ivy

There is a newer version: 0.95
Show newest version
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