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

com.gitee.starblues.factory.PluginFactory Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.gitee.starblues.factory;

import com.gitee.starblues.integration.PluginListenerContext;
import org.pf4j.PluginWrapper;


/**
 * 插件注册者接口
 *
 * @author zhangzhuo
 * @version 2.1.0
 */
public interface PluginFactory extends PluginListenerContext {

    /**
     * 注册插件。
     * @param pluginWrapper 插件
     * @return 插件工厂
     * @throws Exception 插件工厂异常
     */
    PluginFactory registry(PluginWrapper pluginWrapper) throws Exception;


    /**
     * 注销插件。
     * @param pluginId 插件id
     * @return 插件工厂
     * @throws Exception 插件工厂异常
     */
    PluginFactory unRegistry(String pluginId) throws Exception;


    /**
     * 注册或者注销后的构建调用
     * @throws Exception 插件工厂异常
     */
    void build() throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy