hypfvieh / dbus-java

Improved version of java DBus library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/)
https://hypfvieh.github.io/dbus-java/
MIT License
180 stars 72 forks source link

Cleanup AbstractConnection #239

Closed hypfvieh closed 10 months ago

hypfvieh commented 10 months ago

AbstractConnection contains lots of similar invokeXXX and handleXXX methods which bloats the class a lot. It would be nice to move all those methods to somewhere else.

One idea I would like to try is to add a new package called 'invocation' and add some sort of InvocationHandler scheme. This may allow to properly separate the different invokeXXX methods based on what they do and what they are for. It may also allow some refactoring in related to #235.