@ObjectLifecycle

Indicates that a method is an Object lifecycle callback method, one of (created, loaded, saved, …​).

May only be placed on domain object methods, not mixins nor domain services .

By placing the ObjectLifecycle annotation on a method, a contract with the meta-model is enforced, such that this method must be recognized by the meta-model and cannot be ignored.

It is complementary to MemberSupport and ObjectSupport , and in some sense acts as the semantic counterpart to Programmatic .

API

ObjectLifecycle.java
@interface ObjectLifecycle {
}