Benefits
External callbacks help you to solve many different problems
and customize db4o behavior. Among their benefits:
- With external callbacks you do not have to pollute your
object model with persistence code. This is exceptionally valuable when the
objects are inherited from external application or library.
- Multiple event handlers can be registered on particular
events, keeping your code clean and easily readable.
- You can "plug-in" different modules to
perform different tasks. An example can be a module responsible for assigning
unique IDs to your objects.