I am working on a project where there are a lot of objects that are created by a library, and I have no access to the creation process of these objects.
I don't think what you want is possible; there are Dynamic Proxies, but they use reflection, and it doesn't look likely that you have access to the classloader (where you could set your own that did on-the-fly bytecode manipulation).