We propose a new model for flexible composition of objects from a set of features. Features are services of and object and are similar to classes in object-oriented languages. I many cases, features have to be adapted in the presence of other features, which is also called the feature interaction problem. We introduce explicit interaction handlers which can adapt features to other features by overriding methods. When features are composed, the appropriate interaction handling is added in a way which generalizes inheritance and aggregation.
展开▼