Hi Ede,

A question about plugin design.

In 2012, you added both
- an EnableCheck interface implemented by AbstractPlugIn
- an implementation of this interface in AbstractPlugIn which retrieve 
older createEnableCheck method by reflexion

I'd like to add a comment in the code. Am I right to say
- the prefered way to add EnableCheck in a new PlugIn is to implement 
getEnableCheck()
- implementation in AbstractPlugIn is just used to make legacy plugins 
compatible with
new code using the new EnableCheck interface.

I ask because I realize that I always start from an existing plugin and 
often use the old
createEnableCheck method (or even static createEnableCheck). I think I'm 
wrong and I
want to replace it by the getEnableCheck every tiem I review a plugin 
but I want to have
your feedback first,

Michaël

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to