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

org.zodiac.plugin.factory.PluginFactory Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.plugin.factory;

import org.zodiac.plugin.integration.PluginListenerContext;

/**
 * 插件注册者接口。
 */
public interface PluginFactory extends PluginListenerContext {

    /**
     * 工厂初始化
     * 
     * @throws Exception
     *             初始化异常
     */
    void initialize() throws Exception;

    /**
     * 注册插件。
     * 
     * @param pluginRegistryInfo
     *            插件注册信息
     * @return 插件工厂
     * @throws Exception
     *             插件工厂异常
     */
    PluginFactory registry(PluginRegistryInfo pluginRegistryInfo) 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