From what I know about java I don't think this is possible but I would like to pose this question to people with far more knowledge than I do.
If I have a static variable say,
public static String NAME = "james";
Is there any way, through reflection or otherwise, to create a listener for said variable such that if someone else calls:
ClassName.NAME
It can be modified before they get the result, so I can change the value of NAME so that it equals "simon" instead?
To be clear, this code base is not my own and I can not change the variable to instead use getters and setters. I know that would make this much simpler, but that isn't an option unfortunately.