libelektra icon indicating copy to clipboard operation
libelektra copied to clipboard

Analyse how to implement notifications for Java binding

Open tucek opened this issue 3 years ago • 1 comments

Notification are currently only tested with C/C++. Devise an approach how to enable the feature for users of the Java binding. (also see #2786)

tucek avatar Aug 21 '22 19:08 tucek

Yes, this is an important topic if you need synchronization code whenever config changes. Funnily, yesterday I came across a situation where I need it in one of my projects.

The first step would be to allow to pass a contract to internalnotification that calls a callback whenever config below/of a specific key changes. Once this works, the rest should be easy, as a user could rebuild the other features internalnotification has in Java.

If internalnotification makes more trouble than what it can do, it would also be possible to reimplement the internalnotification plugin in Java. This might, however, create different troubles as the plugin is in a different process as the app. Then you would need some out-of-process communication.

markus2330 avatar Aug 22 '22 04:08 markus2330

@markus2330 Do you think this issue is suited for the FLOSS course? If so, that would be great, because it's a Java-related issue.

flo91 avatar Oct 04 '22 21:10 flo91

Yes, it is worth a try. The issue is unfortunately not so easy as it looks like. But difficult to say without anyone trying it.

At least triage can be done.

markus2330 avatar Oct 09 '22 16:10 markus2330

I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Oct 10 '23 01:10 github-actions[bot]

I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Nov 17 '23 01:11 github-actions[bot]