Get a configuration class object in interface

In reply to adharshh:

Can you share where did you call the function “config_fun” in your interface?
I think you need to pass “null” as context (from root) so you are able to get in anywhere.