postInstantiateDelegates

Purpose

Update node attributes after the node has been instantiated.

Examples


class SampleGriffonAddon {
    def postInstantiateDelegates = [
        {builder, attributes, node -> 
            node.initialize()
        }
    ]
}

Description

PostInstantiate delegates are builder strategies that lets you update node attributes right after a node has been instantiated buf before said attributes are set on the node. You may also want to perform shared initialization across several nodes.