Gerhard Schaber,
"Dynamic Ordered Inheritance and Flexible Method Dispatch"
, 7-2003
Original Titel:
Dynamic Ordered Inheritance and Flexible Method Dispatch
Sprache des Titels:
Englisch
Original Kurzfassung:
This thesis presents a small framework which supports dynamic component modification through a flexible method dispatch mechanism. Method dispatch is the mechanism for delegating a method call from the object where the method has been invoked to the object, respectively class where the method is implemented. The framework also provides proper base classes and template configurations for components, which can help to significantly simplify development of applications and their components. The frameworks also provides proper base clases and template configurations for components, which can help to significantly simplify development of applications and their components. The framework is called PCoC which is the abbreviation for Prioritized Coupling and Control of objects and components. Many of its concepts and facilities can also be deployed independently of each other if necessary.
We use a reflection-based (meta-programming) approach where operations are treated as first-class objects. So-called Dispatchers, similar to the Microsoft .NET delegates (type-safe method-pointers), are responsible for dynamic method dispatch. The approach enables to add, remove, or replace operations at runtime, and to attach listeners to method objects, which are notified before or after each call. It simulates delegations-a dispatch mechanism in which an object (the receiver) delegates a message to another object (the method holder and delegate) in response to a message. The delegate carries out the request on behalf of the original object, and may send subsequent messages to the original receiver. This includes the invocation of methods.
A priority ranking of components determines in which order requests for operations are forwarded, which gives the framework its name PCoC. This ranking can change through user interaction (focus change in the GUI), or explicitly.
Sprache der Kurzfassung:
Deutsch
Englische Kurzfassung:
This thesis presents a small framework which supports dynamic component modification through a flexible method dispatch mechanism. Method dispatch is the mechanism for delegating a method call from the object where the method has been invoked to the object, respectively class where the method is implemented. The framework also provides proper base classes and template configurations for components, which can help to significantly simplify development of applications and their components. The frameworks also provides proper base clases and template configurations for components, which can help to significantly simplify development of applications and their components. The framework is called PCoC which is the abbreviation for Prioritized Coupling and Control of objects and components. Many of its concepts and facilities can also be deployed independently of each other if necessary.
We use a reflection-based (meta-programming) approach where operations are treated as first-class objects. So-called Dispatchers, similar to the Microsoft .NET delegates (type-safe method-pointers), are responsible for dynamic method dispatch. The approach enables to add, remove, or replace operations at runtime, and to attach listeners to method objects, which are notified before or after each call. It simulates delegations-a dispatch mechanism in which an object (the receiver) delegates a message to another object (the method holder and delegate) in response to a message. The delegate carries out the request on behalf of the original object, and may send subsequent messages to the original receiver. This includes the invocation of methods.
A priority ranking of components determines in which order requests for operations are forwarded, which gives the framework its name PCoC. This ranking can change through user interaction (focus change in the GUI), or explicitly.