-
@Target(METHOD) @Retention(SOURCE) public @interface Dynamic
The property annotated by this annotation is the dynamic property, which means the property value is calculated when the getter method is called. In other words, there is no really field in the generated class, the property value is calculated on the fly.
The method annotated by this annotation should has the shape as following:
public static PropertyType methodName(@InjectProperty TypeOfPropertyA a, @InjectProperty TypeOfPropertyB b, ...)