Package org.freedesktop.dbus.messages
Class ExportedObject
java.lang.Object
org.freedesktop.dbus.messages.ExportedObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Map<MethodTuple, Method> private final Reference<DBusInterface> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGenerates the introspection data xml for annotationsprivate StringgenerateIntrospectionXml(Set<Class<?>> _interfaces) protected StringgenerateMethodsXml(Class<?> _clz) Generates the introspection data for the input interface methodsprotected StringgeneratePropertiesXml(Class<?> _clz) Generates the introspection data for the input interface properties.protected StringgeneratePropertyXml(DBusProperty _property) Generates the introspection data for the single property.protected StringgenerateSignalsXml(Class<?> _clz) Generates the introspection data for the input interface signalsgetDBusInterfaces(Class<?> _inputClazz) Get all valid DBus interfaces which are implemented in a given class.static booleanisExcluded(Method _meth)
-
Field Details
-
methods
-
introspectionData
-
object
-
-
Constructor Details
-
ExportedObject
- Throws:
DBusException
-
-
Method Details
-
generateAnnotationsXml
Generates the introspection data xml for annotations- Parameters:
_c- input interface/method/signal- Returns:
- xml with annotation definition
-
generatePropertyXml
Generates the introspection data for the single property.- Parameters:
_property- input property annotation- Returns:
- xml with property definition
- Throws:
DBusException- in case of unknown data types
-
generatePropertiesXml
Generates the introspection data for the input interface properties.- Parameters:
_clz- input interface- Returns:
- xml with property definitions
- Throws:
DBusException- in case of unknown data types
-
generateMethodsXml
Generates the introspection data for the input interface methods- Parameters:
_clz- input interface- Returns:
- xml with method definitions
- Throws:
DBusException- if marshalling fails
-
generateSignalsXml
Generates the introspection data for the input interface signals- Parameters:
_clz- input interface- Returns:
- xml with signal definitions
- Throws:
DBusException- in case of invalid signal name / data types
-
getDBusInterfaces
Get all valid DBus interfaces which are implemented in a given class. The search is performed without recursion taking into account object inheritance. A valid DBus interface must directly extend theDBusInterface.- Parameters:
_inputClazz- input object class- Returns:
- set of DBus interfaces implements in the input class
-
generateIntrospectionXml
- Throws:
DBusException
-
getMethods
-
getObject
-
getIntrospectiondata
-
isExcluded
-