Categories

Versions

You are viewing the RapidMiner Developers documentation for version 9.7 -Check here for latest version

Advanced Enhancements

如果简单的操作符不符合您的需求,有一个re several more advanced possibilities to enhance RapidMiner Studio. Learnhow to use the PluginInit classto change some of RapidMiner's behavior during startup, before any operator is executed, and how to:

The PluginInit class

The class offers hooks for changing RapidMiner's behavior during startup. RapidMiner automatically creates the classPluginInitwhen you initialize your extension. It does not have to extend any super class, since its methods are accessed via reflection. There are four methods that are called during startup of RapidMiner. The following might be interesting for you:

public static void initPlugin()

TheinitPluginmethod is called directly after the extension is initialized. It is the first hook during start up. No initialization of the operators or renderers has taken place when this is called.

public static void initGui(MainFrame mainframe)

TheinitGuimethod, called before the GUI of the mainframe is created, is called during start up as the second hook. TheMainFrameis passed as an argument to register GUI elements, while the operators and renderers are registered.

public static void initFinalChecks()

initFinalChecksis the last hook before the splash screen closes.

If you install your extension on RapidMiner Server, the only method called during startup isinitPlugin.