tcalmant / ipopo

iPOPO: a Service-Oriented Component Model for Python
https://ipopo.readthedocs.io/
Apache License 2.0
69 stars 28 forks source link

Optimize handlers selection during callbacks #42

Open tcalmant opened 9 years ago

tcalmant commented 9 years ago

When a handler event occurs, e.g. when a controller changes state, all the handlers are called back, whereas only those of "service_provider" kind should.

Proposal: the StoredInstance.__safe_handlers_callback() method should have the target "kind" as first parameter to select those specific handlers. If this kind is None, then all handlers must be notified.