Edit: What started as a low-priority question to make my work easier has become a really interesting exercise in Java witchcraft. Thanks for your input, everyone!
I'm working with auto-generated Java code (specifically, code generated by AnyLogic) that produces a method called onChange()
. I'd like to call my own method when onChange()
is called. Is there any way to "hook into" onChange()
via reflection or other standard Java mechanism?