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

com.gitee.starblues.integration.operator.module.PluginInfo Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.gitee.starblues.integration.operator.module;

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


/**
 * 插件信息
 * @author starBlues
 * @version 1.0
 */
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