Java generic signal handler

minimulisha03 ericcarmody at hotmail.com
Wed Feb 10 09:07:06 PST 2010


Do you think you could provide me a little help on the match rule?  I can't
seem to get that to work...maybe an example?

I want the generic functionality because I'm writing an event viewer that
listens for everything that happens on dbus.

Thanks again,
-Eric


Matthew Johnson-3 wrote:
> 
> On Tue Feb 09 15:07, minimulisha03 wrote:
>> Is there a way to essentially handle all signals in a generic fashion
>> using
>> the java-dbus bindings?
>> 
>> conn = DBusConnection.getConnection(DBusConnection.SESSION); 
>> DBusSigHandler gen = new genericSigHandler();
>> conn.addSigHandler(DBusSignal.class, gen); //i know this doesn't work but
>> i
>> want this functionality
> 
> Not at present. In general you need to add a match rule in order to
> receive any
> signals, so that's not entirely useful by itself. If you want me to I
> could add
> some more generic functionality. What are you trying to achieve with this?
> 
> Matt
> 
> -- 
> www.matthew.ath.cx
> D-Bus Java
> 
>  
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
> 
> 

-- 
View this message in context: http://old.nabble.com/Java-generic-signal-handler-tp27523741p27534451.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.



More information about the dbus mailing list