Annotation Interface PostApply


Designates a method to be executed after apply has been called. There can be an arbitrary number of PostApply methods in a class. PostApply methods must not be private, so they can be overridden, it is advised to make them protected.

Like all lifecycle annotations, this annotation can also be placed on fields of type closure, which will be executed along with annotated methods.

PostApply methods are called in the order of the model hierarchy, i.e. first the lifecycle methods of the ancestor model are called, then of the next level and so one. Overridden PostApply methods are called in the place where they were originally defined, i.e. if a method is defined in Parent and overridden in Child, the overridden method is called along with the Parent's methods.