|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.plugin.Plugin
public class Plugin
The class for RapidMiner plugins. This class is used to encapsulate the .jar file
which must be in the lib/plugins subdirectory of RapidMiner.
Provides methods for plugin checks, operator registering, and getting
information about the plugin.
Plugin dependencies must be defined in the form
plugin_name1 (plugin_version1) # ... # plugin_nameM (plugin_versionM) < /br>
of the manifest parameter Plugin-Dependencies. You must
define both the name and the version of the desired plugins and separate them
with "#".
| Field Summary | |
|---|---|
static java.lang.String |
RAPIDMINER_TYPE
The name for the manifest entry RapidMiner-Type which can be used to indicate that a jar file is a RapidMiner plugin. |
static java.lang.String |
RAPIDMINER_TYPE_PLUGIN
The value for the manifest entry RapidMiner-Type which indicates that a jar file is a RapidMiner plugin. |
| Constructor Summary | |
|---|---|
Plugin(java.io.File file)
Creates a new plugin based on the plugin .jar file. |
|
| Method Summary | |
|---|---|
AboutBox |
createAboutBox(java.awt.Frame owner,
java.awt.Image productLogo)
Creates the about box for this plugin. |
static void |
findPlugins(java.io.File pluginDir,
boolean showWarningForNonPluginJars)
Returns a list of plugins found in the plugins directory. |
static java.util.List<Plugin> |
getAllPlugins()
Returns the collection of all plugins. |
java.util.List<BuildingBlock> |
getBuildingBlocks()
Returns a list of building blocks. |
java.lang.ClassLoader |
getClassLoader()
Returns the class loader of this plugin. |
static java.lang.ClassLoader |
getMajorClassLoader()
Returns a class loader which is able to load all classes (core _and_ all plugins). |
java.lang.String |
getName()
Returns the name of the plugin. |
java.lang.String |
getNecessaryRapidMinerVersion()
Returns the necessary RapidMiner version. |
java.lang.ClassLoader |
getOriginalClassLoader()
Returns the class loader of this plugin. |
static Plugin |
getPlugin(java.lang.String name)
Returns the desired plugin. |
java.util.List |
getPluginDependencies()
Returns the plugin dependencies of this plugin. |
java.lang.String |
getVersion()
Returns the version of this plugin. |
static void |
initAboutTexts(java.util.Properties properties)
|
static void |
initFinalChecks()
|
static void |
initPluginGuis(MainFrame mainframe)
This method will try to invoke the method void initGui(MainFrame) of PluginInit class of every plugin. |
static void |
initPlugins()
This method will try to invoke the public static method initPlugin() of the class com.rapidminer.PluginInit for arbitrary initializations of the plugins. |
static void |
initPluginSplashTexts()
|
static void |
initPluginUpdateManager()
|
protected void |
mergeClassLoader(Plugin other)
Adds the URLs of the given Plugin to class loader of this one. |
void |
register()
Register the operators of this plugin in RapidMiner. |
static void |
registerAllPlugins(java.io.File pluginDirectory,
boolean showWarningForNonPluginJars)
Returns a list of Plugins found in the given plugins directory. |
boolean |
showAboutBox()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RAPIDMINER_TYPE
public static final java.lang.String RAPIDMINER_TYPE_PLUGIN
| Constructor Detail |
|---|
public Plugin(java.io.File file)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getNecessaryRapidMinerVersion()
public java.util.List getPluginDependencies()
public java.lang.ClassLoader getClassLoader()
public java.lang.ClassLoader getOriginalClassLoader()
public void register()
public java.util.List<BuildingBlock> getBuildingBlocks()
public AboutBox createAboutBox(java.awt.Frame owner,
java.awt.Image productLogo)
public static void findPlugins(java.io.File pluginDir,
boolean showWarningForNonPluginJars)
protected void mergeClassLoader(Plugin other)
public java.lang.String toString()
toString in class java.lang.Object
public static void registerAllPlugins(java.io.File pluginDirectory,
boolean showWarningForNonPluginJars)
public static java.lang.ClassLoader getMajorClassLoader()
public static java.util.List<Plugin> getAllPlugins()
public static Plugin getPlugin(java.lang.String name)
public static void initPluginGuis(MainFrame mainframe)
public static void initPlugins()
public static void initPluginUpdateManager()
public static void initFinalChecks()
public static void initPluginSplashTexts()
public static void initAboutTexts(java.util.Properties properties)
public boolean showAboutBox()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||