Hi, I am having a class A which gets a configuration file doing:
this.getClass().getResource("cfgFile");
Now I created a new class B who needs A's cfgFile. Right now I am doing:
A.class.getResource("cfgFile");
But it doesn't feel right.
I was willing to create a new class, something like ABCfg and adding the cfgFile to it's resource path, but I'm not sure it's the best way.
What's the best way to do this?
Thanks for reading!