Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
splatch opened this issue Sep 9, 2021 · 3 comments
Open

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

splatch opened this issue Sep 9, 2021 · 3 comments

Comments

@splatch
Copy link

splatch commented Sep 9, 2021

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

@thjomnx
Copy link
Owner

thjomnx commented Sep 11, 2021

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

@shanemikel
Copy link

shanemikel commented Dec 7, 2022

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.

@thjomnx
Copy link
Owner

thjomnx commented Dec 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants