Search in sources :

Example 6 with Command

use of henplus.Command in project henplus by neurolabs.

the class PluginCommand method loadPlugin.

/**
     * load a plugin and register it at HenPlus.
     */
private Command loadPlugin(final String className) throws ClassNotFoundException, ClassCastException, InstantiationException, IllegalAccessException {
    Command plugin = null;
    final Class<?> pluginClass = Class.forName(className);
    plugin = (Command) pluginClass.newInstance();
    _henplus.getDispatcher().register(plugin);
    return plugin;
}
Also used : AbstractCommand(henplus.AbstractCommand) Command(henplus.Command)

Aggregations

AbstractCommand (henplus.AbstractCommand)6 Command (henplus.Command)6 StringTokenizer (java.util.StringTokenizer)4 SortedMatchIterator (henplus.view.util.SortedMatchIterator)2 CommandDispatcher (henplus.CommandDispatcher)1 Column (henplus.view.Column)1 TableRenderer (henplus.view.TableRenderer)1 HashSet (java.util.HashSet)1