摘要 |
Techniques are described herein to allow a query and one or more associated actions to be registered as an "event selector", and to have the one or more actions of the event selector invoked when an event occurs on a target that matches the query. According to one aspect, a selector string representing the query and one or more actions associated with the selector string are obtained. In response to obtaining an event, a target of the event is obtained and it is determined whether the target matches the selector string. If the target matches the selector string, then the one or more actions associated with the selector string are invoked. By doing so, events may be indirectly routed to actions through queries on event targets.
|