Can you please tell me if this is possible scenario with byte-buddy:
- Java program is run.
- Standard java POJO classes with lots of properties are loaded.
- ByteBuddy - in runtime modify each class replacing property types e.g. int and Integer with
MyInteger.MyIntegeris there to intercept setting of this properties. I don't want to use setters, since it is not mandatory to have setters for all the properties. - Each invocation to
SomeClass.setSomeInt(1)will invoke some method defined on MyInteger. - Remove all the properties back to original's
MyInteger->intandMyInteger->Integer.
Basically run time proxies directly on properties.