java-systemd icon indicating copy to clipboard operation
java-systemd copied to clipboard

[question] How did you get systemd-dbus java binding?

Open splatch opened this issue 4 years ago • 3 comments

Hey Markus, This issue is question, so feel free to close it if you wish. I noticed that you have a bunch of code which seems to be maintained manually. Yet looking at it amount I believe first portion could be generated few years back. Was it a case? Can you recommend any code generator which actually works? Generator I found in dbus-java produces incomplete results.

Thanks, Łukasz

splatch avatar Sep 09 '21 20:09 splatch

Hi,

yes, basically all of the code you spotted is maintained manually. The reason is, that the generated code of dbus-java has never been that efficient to suite my goals. Also, such generated code is in many cases not "clean", i.e. generic variable names and getters do not tell enough to a developer.

I'm not aware of any other generator that would fit here.

When I find the time then I use to try to align these parts to the latest version of systemd.

Cheers Markus

thjomnx avatar Sep 11 '21 14:09 thjomnx

Hello, I also encountered some issues generating Systemd bindings with dbus-java. I opened an issue at hypfvieh/dbus-java#195.

Your README.md mentions contributions by @brett-smith to use dbus-java v3. I assume it is still the case you are not using the code generator?

Did you ever try using the QtDBus bindings module, qtjambi-dbus, in the QtJambi Qt bindings for Java project?

I am considering using your library instead of generating bindings myself.

shanemikel avatar Dec 07 '22 23:12 shanemikel

I assume it is still the case you are not using the code generator?

Correct, the bindings are still coded manually (and supposed to be aligned to the evolution of systemd regularly - but I don't find the time for this atm).

Did you ever try using the QtDBus bindings module, qtjambi-dbus, in the QtJambi Qt bindings for Java project?

Nope.

thjomnx avatar Dec 10 '22 22:12 thjomnx