Any way to do an onExtensionChanged?

Writing a plugin that creates a task only if some fields are specified in the extension. Currently adding an ‘after-evaluate’ block when I apply the plugin that looks at the values in the extension and sets stuff up. I was wondering if there was a more direct “extension.onChanged{}” behavior, or if afterEvaluate is the correct way to do this.

(After Evaluate has a bit of a weird behavior in that if a user does an afterEvaluate, it’ll be put to the end of the queue, and if they change the values then it won’t get picked up)

You could implement some kind of hook for this yourself in your extension.

class MyExtension {
    private String foo

    void setFoo(String foo) {
        this.foo = foo
        fooChanged() // execute some logic when this property is set
    }
}