tcalmant / ipopo

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

Allow custom inheritance of some provided services #10

Closed tcalmant closed 10 years ago

tcalmant commented 10 years ago

Allow a component to inherit some of the services provided by its parent class (a component or a decorated class). The services included or excluded from the inheritance should be listed in the @ComponentFactory or an @InheritProvides or an @InheritHandler decorator.

tcalmant commented 10 years ago

Added an "excluded" parameter to ComponentFactory: inherited and class handlers configurations are merged by the FactoryContext.inherit_handlers(excluded) method.

Unit tests to be done.

tcalmant commented 10 years ago

Tests added in commit 3d6abc8e45f618cf3308a3d44582a63f089f0d0d.