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

com.gitee.starblues.integration.application.PluginApplication Maven / Gradle / Ivy

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

import com.gitee.starblues.extension.AbstractExtension;
import com.gitee.starblues.integration.PluginListenerContext;
import com.gitee.starblues.integration.listener.PluginInitializerListener;
import com.gitee.starblues.integration.operator.PluginOperator;
import com.gitee.starblues.integration.user.PluginUser;
import org.springframework.context.ApplicationContext;

/**
 * 插件应用。
 * @author zhangzhuo
 * @version 2.2.0
 */
public interface PluginApplication extends PluginListenerContext {

    /**
     * 初始化
     * @param applicationContext Spring上下文
     * @param listener 插件初始化监听者
     */
    void initialize(ApplicationContext applicationContext, PluginInitializerListener listener);


    /**
     * 获得插插件操作者
     * @return 插件操作者
     */
    PluginOperator getPluginOperator();

    /**
     * 获得插插件操作者
     * @return 插件操作者
     */
    PluginUser getPluginUser();

    /**
     * 添加扩展
     * @param extension 扩展类
     */
    void addExtension(AbstractExtension extension);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy