Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Mix-Ins in EMF
Mix-Ins in EMF [message #620752] Wed, 25 March 2009 14:34
Robert Onslow is currently offline Robert OnslowFriend
Messages: 19
Registered: July 2009
Junior Member
I have a class A defined in an .ecore model which implements interface IA,
and an interface IB defined in a second .ecore model

I need to mix the behaviour of the interface IB into class A at runtime.

The usual way would be to create a wrapper class C which implements IA and
IB, wraps the runtime instance of A, and delegates all of its methods
specified by IA to A.

However the EObject classes which access the features of A make frequent
use of the "this" keyword, which means that setting features on C will
fail.

What is the correct way of mixing in behaviour at runtime in EMF?

Robert
Previous Topic:Teneo Annotations Inheritance Mapping problem
Next Topic:Mix-Ins in EMF
Goto Forum:
  


Current Time: Thu Apr 25 07:59:50 GMT 2024

Powered by FUDForum. Page generated in 0.02701 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top