Is there a way to always execute a function before any other function of a class is called?
I have a class where I need to refresh some fields always before any func
Not in Java SE, but if you are using Java EE, you could use interceptors.
For standalone applications, you could consider using a bytecode manipulation framework, like javassist.