开发者

Plugin Backward compatibility

开发者 https://www.devze.com 2023-03-23 12:19 出处:网络
I have created one plugin based application, by using MEF. So i have created one interface library which will be implemented by plugins.

I have created one plugin based application, by using MEF. So i have created one interface library which will be implemented by plugins.

But i have one question about backward compatibility,

As i have defined interfaces in PluginInterface library, now if made any change to IPlugin then, i can't load older versions Plugin (which implements older interface) .

So how can i achieve backward compatibility in application?

Please give me suggestions, 开发者_JAVA百科

Thanks


In order to stay compatable with previous versions you cannot change the interface. If you want to change your interface you need to introduce another new interface (IPlugin2 for example).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号