摘要 |
A method for dynamically extending functionality of an object without modifying executable code includes the steps of first identifying an existing object as a primary facet object (16) and creating an aggregate object (14). The primary facet object (16) is linked to the aggregate object (14). One or more facet objects (28) that extend a functionality of the primary facet object (16) are added to the aggregate object (14). The particular facet objects (28) linked to the aggregate object (14) is located that has a class that equals or extends a requested class. A reference to the particular facet object (28) is returned and the particular facet object (28) is invoked using the returned reference.
|