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

arez.annotations.PostConstruct 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 constructing component.
 * At most 1 method should be annotated with this annotation.
 * The PostConstruct method is invoked after the component classes constructor has been invoked and after all
 * the Arez elements have been constructed but before any @Autorun methods have been scheduled.
 *
 * 

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 PostConstruct { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy