Hi!
What for is the Plugins.init() - method?
I know it’s to set the plugins- directory.
But what is the benefit of it? To use, for example, the DelimitedDataReader, I still have to import the specific .jar - File to use it with my development environment.
Stefan
Hi,
Clover engine is extensible by plugins and it automatically loads them from the directory specified in Plugins.init(). The plugins contain the code of components, connections etc, but also a mapping from their “names” to their classes (i.e. DATA_READER → org.jetel.component.DataReader).
So if you create Clover graphs purely from Java code and create all elements of the graph manually (i.e. new SimpleCopy(…)), then you only need the plugins’ classes in the classpath and you don’t really need to set the plugin path. If you want to create graphs from XML or via factories (i.e. ComponentFactory class) then you must specify the plugin path.
Jaro