how to dynamically set options in a plugin?

Hi,

I've got a plugin for file importation, whose configuration (execution) I'd like to update dynamically. How can I access to the plugin? Will Framework.getService(

Tx

Patrick

0 votes

0 answers

1279 views

ANSWER

Question is not clear, sorry.
06/18/2013

When I extend FileManager with the extension point "plugins", I can manage the importation of some specific files. Now I would like to allow the user to set some options to guide the importing process.

Now, I imagine there are two options:

1- I call directly my FileImporter from the bean That means I may have a special constructor, with the appropriate options. I will have to check for the file type directly. Will that work?

2- I let the FileManagerService do the job, and call my plugin. That means that I need some way to set the options differently.

a) if plugins are registered as services, I should be able to access them through "Framework.getService(…)". But is it the case?

b) if not, if I just call <classname>.<static method>, with it work?

Tx

06/18/2013