1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 09:15:38 +02:00

Doc enhancement

This commit is contained in:
John Cortell 2010-02-03 13:15:54 +00:00
parent 33757e1341
commit 7190d7b8bf

View file

@ -300,9 +300,19 @@ public class DsfSession
/**
* Adds a new listener for service events in this session.
* @param listener the listener that will receive service events
* @param filter optional filter to restrict the services that the
* listener will receive events from
*
* <p>
* Listeners don't implement any particular interfaces. They declare one or
* more methods that are annotated with '@DsfServiceEventHandler', and which
* take a single event parameter. The type of the parameter indicates what
* events the handler is interested in. Any event that can be cast to that
* type (and which meets the optional filter) will be sent to it.
*
* @param listener
* the listener that will receive service events.
* @param filter
* optional filter to restrict the services that the listener
* will receive events from
*/
public void addServiceEventListener(Object listener, Filter filter) {
assert getExecutor().isInExecutorThread();