Hello everyone,
For the last 3 days I'm struggling with a problem which, at first, didn't seem like a problem at all. I hope someone here can help me.
I'll try to be as clear as possible, but if there's any question, just let me know.
What I'm trying to do is create some kind of dynamic property reading class. The idea is as follows:
This method getProperty() should work in the following way that it should return a Map (or a Map in a Map in a Map, as I will show later).
The Map can be of different depths, depending on the way you call the method. If you call the method with a
string like this:
It should give you a map such that the following code should work:
The idea is that this will enable me to get all the controller settings is necessary (with getProperty("controller")) or to get all
internationalization settings (getProperty("controller.i18n")) or, as above, to get all handlers associated with the controller
logger (getProperty("controller.logger.handler");
Now it might look like I'm going for an easy anwer and don't do the thinking myself. Well, that's not the case. I can post all my
possible solution here I created so far (Which all don't work!), but that will make quite as mess. If you are interested though, I
won't mind posting them here too.
Maybe I'm looking in a very wrong direction, but I someone can give me a push into a better direction, please let me know!
Thanks in advance for all your help,
Greetings, Erik Pragt