1. I know your implementation loads the properties from the file only once, and not everytime a method of the interface is called, because you talked about doing a "hot reaload" feature. Is it kept somewhere in a "dark private secret" class? Where?
2. If the value are kept somewhere, can't we have MBeans to access them and modify them from outside the program? :D
I am talking about javax.management.MBeanServer and org.softee.management.annotation.ManagedAttribute here.
3. In the "hot reload" implementation you are thinking of, we need to modify the file and save it before "triggering" the reloading of modified values, if there are, right?
If we do that, the previous file values are lost. I would rather modify the "loaded" value with MBeans, but since we only have an interface with your annotations (which I like very much), we can't.
4. It would be nice to have something to support validations on values. I mean, whether the value is the default or loaded from the properties file, have some validation code attached to when the value is loaded or changed. Have you thought about that, or you'd rather let the user implement it's validation code himself? Maybe use some other annotations for validation...
5. Are we forced to match the name of the interface with the name of the properties file? It would be cool to annotate the interface with the properties file name, for more flexibility, don't you think?
Know that I enjoy your OWNER project and i am very enthusiastic about it.
I might try to wrap it with my own classes to use it inside our java project at work, but I like to discuss with you about all that.
ps - english isn't my native language, so I hope I am not misunderstood too often :)
Hi Michäel1. I know your implementation loads the properties from the file only once, and not everytime a method of the interface is called, because you talked about doing a "hot reaload" feature. Is it kept somewhere in a "dark private secret" class? Where?