Details
Description
I have written a plugin that adds two methods to my controller classes using the doWithDynamicMethods closure. The closure code is attached.
The plugin works great, but when in development, if I make changes to the controller code (which causes it to be recompiled on the back-end), the dynamic methods are lost. I can only assume this because doWithDynamicMethods is not called again.
I'm sure there is a way to use the change methods on the plugin to refire doWithDynamicMethods, but I can't figure out how to do it.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Add:
And implement onChange
def onChange =
{ doWithDynamicMethods() }