saker.build Documentation TaskDoc JavaDoc Packages
Field annotation for specifying a context of task parameters.

Fields annotated with DataContext will be visited during parameter initialization, and their fields annotated as parameters will be initialized as well.

This annotation is recommended to be used when multiple tasks can have the same parameter signatures. Exporting the common parameters into a data class and having it present in the tasks with the DataContext annotation can greatly reduce code duplication.

Methods
public boolean
instantiate() default true
Gets if this field is auto-instantiateable.
public abstract boolean instantiate() default true
Gets if this field is auto-instantiateable.
true, if the corresponding field can be automatically instantiated during the assignment of parameters.