Introduce a global configuration flag to disable JPA callbacks
Description
The current infrastructure to support callbacks is implemented in a way which requires holding a reference to the ReflectionManager at runtime.
I've been persuaded that the overhead of keeping such heavy objects around should be optional for people who have no interest in JPA callbacks and who are looking to save such memory.
I'll introduce a flag but expect this to be short lived, as we hope to refactor such code in the near future to not actually need the ReflectionManager reference.
The current infrastructure to support callbacks is implemented in a way which requires holding a reference to the
ReflectionManager
at runtime.I've been persuaded that the overhead of keeping such heavy objects around should be optional for people who have no interest in JPA callbacks and who are looking to save such memory.
I'll introduce a flag but expect this to be short lived, as we hope to refactor such code in the near future to not actually need the
ReflectionManager
reference.