Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Properties values runtime modifications #31
From a private email:
I would say that the main feature I am looking forward to is changing the value of a property at runtime without editing the file.
This issue is also related to #19 since changing properties values at runtime, it can be nice to have a jmx bean for that too.
I will implement this change asap:
I will add an interface like:
so your interface will be declared as:
and you can call use it as:
to have it immediately reflected in the object. Of course this will be coordinated by a thread lock, so basically it will wait until all other threads are not reading the property, then update it.
Thanks for adding this here. :) With that, OWNER api would offer every feature I need at the moment.
Do you plan on adding the jmx bean directly over the Mutable interface? I don't know if that would be significant enough in a jmx beans UI, like jvisualvm... I mean, having only two available operations (set & remove) for all my 80 properties.
And since I don't have direct access to the values, I can't write my own jxm bean, so I have to rely on your implementation. Am I right?
It's in the todo list, after the runtime modification it would be trivial to add this, I suppose.
You are right, after the Runtime Modification (Mutable interface) implementation you should be able to write the JMX bean, if it isn't available by us.
And unit tests here.
Probably I'll add more methods to
This feature will be included in the next release, 1.0.4, as soon as I complete all the necessary features, documentation, and things, to make the release ready.
Latest snapshot version (owner-1.0.4-20130607.012115-17) is available here.