postNodeCompletionDelegates
Purpose
Execute code before the node goes out of scope.Examples
class SampleGriffonAddon {
def postNodeCompletionDelegates = [
{builder, parent, node ->
if(builder.context.lazyInit) node.initialize()
}
]
}
Description
PostNodeCompletion delegates are builder strategies for performing last minute tweaks before the node goes out of scope during the build cycle. This is a good place to inspect the current context and perform late/lazy relationships or cleanup routines.