|Re: Adapter pattern in ecluipse: is it possible to have multiple adapter factories on platform? [message #663280 is a reply to message #663272]
||Mon, 04 April 2011 10:09
Registered: April 2011
Actually I have core plugin, product platform that I can not change. But I'm using its data model. Some domain data about logging and test results.|
The core system has its adapter factory which it uses for the data presentation in some tree viewer.
Now in my plugin I'm using the same data from the core plugin and I have to attach some additional informations to each data model element.
If it would be possible to change source from the core plugin, I would just add (and implement) my new adapter to existing adapter factory.
But as I can not do that I wonder if I can register in my plugin another adapter factory but for the cores domain type and convert it to my object.
Core plugin: domain type - adaptable object, object with which we are starting - source type.
Core plugin: adapter factory used for cores presentation layer.
My plugin: adapter type - my new object to which I want to adapt. New targetType, which is is not part of the existing adapter factory.
Since I can not add new targetType to existing adapter factory it would be convenient for me, if It is allowed to register additional adapter factory fort the adaptable type that already has one adapter factory. Or I need to find some workaround for that.
[Updated on: Mon, 04 April 2011 10:26]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01653 seconds