All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.plugin.integration.operator.module.PluginInfo Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.plugin.integration.operator.module;

import org.pf4j.PluginDescriptor;
import org.pf4j.PluginState;

/**
 * 插件信息。
 * 
 */
public class PluginInfo {

    /*插件基本信息*/
    private PluginDescriptor pluginDescriptor;

    /*插件状态*/
    private PluginState pluginState;

    /*插件路径*/
    private String path;

    /*运行模式*/
    private String runMode;

    public PluginInfo(PluginDescriptor pluginDescriptor, PluginState pluginState, String path, String runMode) {
        this.pluginDescriptor = pluginDescriptor;
        this.pluginState = pluginState;
        this.path = path;
        this.runMode = runMode;
    }

    public PluginDescriptor getPluginDescriptor() {
        return pluginDescriptor;
    }

    public PluginState getPluginState() {
        return pluginState;
    }

    public String getPluginStateString() {
        return pluginState.toString();
    }

    public String getPath() {
        return path;
    }

    public String getRunMode() {
        return runMode;
    }

    @Override
    public String toString() {
        return "PluginInfo{" + "pluginDescriptor=" + pluginDescriptor + ", pluginState=" + pluginState + ", path='"
            + path + '\'' + ", runMode='" + runMode + '\'' + '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy