Ticket #1443 (closed defect: fixed)
Opened 2012-08-28T14:31:36-05:00
Last modified 2012-08-29T09:36:00-05:00
Allow plugin service to run intances of RunnablePlugin
Reported by: | bdezonia | Owned by: | curtis |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | Core | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1052 |
Description
Currently in IJ2 I can do this:
HashMap<String,Object> inputMap = new HashMap<String, Object>();
inputMap.put("display", differentDisplay);
pluginService.run(FindEdges.class, inputMap);
I would like to be able to do this:
FindEdges pluginInstance = new FindEdges();
pluginInstance.setDisplay(differentDisplay);
pluginService.run(pluginInstance);
This would allow developers to populate plugins with unharvested values using public accessor API of a given plugin instance.
Change History
comment:1 Changed 2012-08-28T14:47:50-05:00 by curtis
- Status changed from new to closed
- Resolution set to fixed
comment:2 Changed 2012-08-28T14:48:41-05:00 by curtis
There is potential problem I anticipate: setting the Display parameter manually this way will not flag the parameter as "resolved" so the preprocessors will still try to populate it. I'm not sure of the best way around this. One option might be to skip certain plugin preprocessing when running plugins this way, but that would require further thought to get right.
comment:3 Changed 2012-08-29T09:36:00-05:00 by bdezonia
Note that these changes were reverted and the running of plugin instances through the plugin service is not going to be allowed
Should now be possible with 399d9d37!