I have a class with has a lot of static variables and each has a value . I am trying to see if I can dynamically access the static variable based of certain condition . Is there a way i can create a factory using spring configs which would let me access a static variable dynamically .
In the example below i would like to do a A.get(""); rather than if else loop
Static String A = "###";
Static String B = "****";