org.freedesktop.dbus.interfaces.DBusInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbus-java-core Show documentation
Show all versions of dbus-java-core Show documentation
Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).
package org.freedesktop.dbus.interfaces;
/**
* Denotes a class as exportable or a remote interface which can be called.
*
* Any interface which should be exported or imported should extend this interface. All public methods from that
* interface are exported/imported with the given method signatures.
*
*
* All method calls on exported objects are run in their own threads. Application writers are responsible for any
* concurrency issues.
*
*/
public interface DBusInterface {
/**
* Returns true on remote objects. Local objects implementing this interface MUST return false.
*
* @return boolean
*/
default boolean isRemote() {
return false;
}
/**
* Returns the path of this object.
*
* @return string
*/
String getObjectPath();
}