Top Inners Fields Constructors Methods
org.freedesktop.dbus.messages

public Class DBusSignal

extends Message
Class Inheritance
Known Direct Subclasses
org.freedesktop.dbus.interfaces.DBus.NameOwnerChanged, org.freedesktop.dbus.interfaces.DBus.NameLost, org.freedesktop.dbus.interfaces.DBus.NameAcquired, org.freedesktop.dbus.interfaces.ObjectManager.InterfacesAdded, org.freedesktop.dbus.interfaces.ObjectManager.InterfacesRemoved, org.freedesktop.dbus.interfaces.Properties.PropertiesChanged
Imports
org.freedesktop.dbus.*, org.freedesktop.dbus.connections.base.AbstractConnectionBase, org.freedesktop.dbus.exceptions.DBusException, .MessageFormatException, org.freedesktop.dbus.interfaces.DBusInterface, org.freedesktop.dbus.messages.constants.ArgumentType, .HeaderField, .MessageType, org.freedesktop.dbus.utils.CommonRegexPattern, .DBusNamingUtil, .DBusObjects, org.slf4j.Logger, .LoggerFactory, java.lang.invoke.MethodType, java.lang.reflect.Constructor, .GenericDeclaration, .Type, .TypeVariable, java.util.ArrayList, .Arrays, .List, .Map, java.util.concurrent.ConcurrentHashMap, java.util.stream.Collectors

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private byte[]
private boolean
private static final Map<Class<? extends DBusSignal>, List<DBusSignal.CachedConstructor>>
private static final Map<String, Class<? extends DBusSignal>>
private Class<? extends DBusSignal>
private static final Map<String, String>
private static final Logger
private static final Map<String, String>
private static final Map<Class<? extends DBusSignal>, Type[]>
Inherited from org.freedesktop.dbus.messages.Message:
loggerMAXIMUM_ARRAY_LENGTHMAXIMUM_MESSAGE_LENGTHMAXIMUM_NUM_UNIX_FDSPROTOCOL

Constructor Summary

AccessConstructor and Description
pack-priv
protected
DBusSignal(byte _endianess, String _source, String _path, String _iface, String _member, String _sig, Object... _args)

protected
DBusSignal(String
The path to the object this is emitted from.
_objectPath
,
Object...
The parameters of the signal.
_args
)

Create a new signal.

protected
DBusSignal(byte
message endianess
_endianess
,
String
The path to the object this is emitted from.
_objectPath
,
Object...
The parameters of the signal.
_args
)

Create a new signal.

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
pack-priv static void
addSignalMap(String _java, String _dbus)

public void
private void
cacheConstructors(Class<? extends DBusSignal> _clazz)

public DBusSignal

Returns:

DBusSignal or null
createReal
(AbstractConnectionBase
connection on which the signal was received
_conn
)

Called to create signal objects for object handlers.

private static Class<? extends DBusSignal>
createSignalClass(String _intName, String _sigName)

Inherited from org.freedesktop.dbus.messages.Message:
alignappendappendByteappendBytesappendintcreateHeaderArgsdemarshallintdemarshallintdemarshallintBigdemarshallintLittledumpWireDataextractextractextractextractHeadergetAlignmentgetBodylengetByteCountergetDestinationgetEndianessgetFiledescriptorsgetFlagsgetHeadergetHeadergetHeaderFieldNamegetInterfacegetNamegetParametersgetParametersgetPathgetProtovergetReplySerialgetSerialgetSiggetSourcegetTypegetWireDatamarshallintmarshallintBigmarshallintLittlepadpadAndMarshallpopulatesetArgssetByteCountersetHeadersetSerialsetSourcesetWireDatatoStringupdateEndianessusesPrimitives

Field Detail

blenback to summary
private byte[] blen
bodydoneback to summary
private boolean bodydone
CACHED_CONSTRUCTORSback to summary
private static final Map<Class<? extends DBusSignal>, List<DBusSignal.CachedConstructor>> CACHED_CONSTRUCTORS
CLASS_CACHEback to summary
private static final Map<String, Class<? extends DBusSignal>> CLASS_CACHE
clazzback to summary
private Class<? extends DBusSignal> clazz
INT_NAMESback to summary
private static final Map<String, String> INT_NAMES
LOGGERback to summary
private static final Logger LOGGER
SIGNAL_NAMESback to summary
private static final Map<String, String> SIGNAL_NAMES
TYPE_CACHEback to summary
private static final Map<Class<? extends DBusSignal>, Type[]> TYPE_CACHE

Constructor Detail

DBusSignalback to summary
pack-priv DBusSignal()
DBusSignalback to summary
protected DBusSignal(byte _endianess, String _source, String _path, String _iface, String _member, String _sig, Object... _args) throws DBusException
DBusSignalback to summary
protected DBusSignal(String _objectPath, Object... _args) throws DBusException

Create a new signal. This constructor MUST be called by all sub classes.

Parameters
_objectPath:String

The path to the object this is emitted from.

_args:Object[]

The parameters of the signal.

Exceptions
DBusException:
This is thrown if the subclass is incorrectly defined.
DBusSignalback to summary
protected DBusSignal(byte _endianess, String _objectPath, Object... _args) throws DBusException

Create a new signal. This contructor MUST be called by all sub classes.

Parameters
_endianess:byte

message endianess

_objectPath:String

The path to the object this is emitted from.

_args:Object[]

The parameters of the signal.

Annotations
@SuppressWarnings:unchecked
Exceptions
DBusException:
This is thrown if the subclass is incorrectly defined.

Method Detail

addInterfaceMapback to summary
pack-priv static void addInterfaceMap(String _java, String _dbus)
addSignalMapback to summary
pack-priv static void addSignalMap(String _java, String _dbus)
appendbodyback to summary
public void appendbody(AbstractConnectionBase _conn) throws DBusException
cacheConstructorsback to summary
private void cacheConstructors(Class<? extends DBusSignal> _clazz)
Annotations
@SuppressWarnings:unchecked
createRealback to summary
public DBusSignal createReal(AbstractConnectionBase _conn) throws DBusException

Called to create signal objects for object handlers.

Parameters
_conn:AbstractConnectionBase

connection on which the signal was received

Returns:DBusSignal

DBusSignal or null

Exceptions
DBusException:
when reading signal fails
createSignalClassback to summary
private static Class<? extends DBusSignal> createSignalClass(String _intName, String _sigName) throws DBusException
Annotations
@SuppressWarnings:unchecked
org.freedesktop.dbus.messages back to summary

private Class DBusSignal.CachedConstructor

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Constructor<? extends DBusSignal>
private final List<Class<?>>
private final Type[]

Constructor Summary

AccessConstructor and Description
pack-priv
CachedConstructor(Constructor<? extends DBusSignal> _constructor)

Method Summary

Modifier and TypeMethod and Description
private static Type[]
createTypes(Constructor<? extends DBusSignal> _constructor)

public boolean
matchesParameters(List<Class<?>> _wantedArgs)

private static <T> Class<T>
wrap(Class<T> _clz)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorback to summary
private final Constructor<? extends DBusSignal> constructor
parameterTypesback to summary
private final List<Class<?>> parameterTypes
typesback to summary
private final Type[] types

Constructor Detail

CachedConstructorback to summary
pack-priv CachedConstructor(Constructor<? extends DBusSignal> _constructor)

Method Detail

createTypesback to summary
private static Type[] createTypes(Constructor<? extends DBusSignal> _constructor)
Annotations
@SuppressWarnings:unchecked
matchesParametersback to summary
public boolean matchesParameters(List<Class<?>> _wantedArgs)
wrapback to summary
private static <T> Class<T> wrap(Class<T> _clz)
Annotations
@SuppressWarnings:unchecked