com.gitee.starblues.integration.DefaultIntegrationConfiguration Maven / Gradle / Ivy
package com.gitee.starblues.integration;
import org.pf4j.RuntimeMode;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
/**
* 默认的插件集成配置。给非必须配置设置了默认值
*
* @author starBlues
* @version 2.4.4
*/
public abstract class DefaultIntegrationConfiguration implements IntegrationConfiguration{
@Override
public List pluginPath() {
List pluginPath = new ArrayList<>(1);
if(environment() == RuntimeMode.DEPLOYMENT){
pluginPath.add("plugins");
} else if(environment() == RuntimeMode.DEVELOPMENT){
pluginPath.add("./plugins/");
}
return pluginPath;
}
@Override
public boolean enable() {
return true;
}
@Override
public String uploadTempPath(){
return "temp";
}
@Override
public String backupPath(){
return "backupPlugin";
}
@Override
public String pluginRestPathPrefix(){
return "/plugins";
}
@Override
public boolean enablePluginIdRestPathPrefix() {
return true;
}
@Override
public Set enablePluginIds() {
return null;
}
@Override
public Set disablePluginIds() {
return null;
}
@Override
public boolean enableSwaggerRefresh() {
return true;
}
@Override
public List sortInitPluginIds() {
return null;
}
@Override
public String version() {
return "0.0.0";
}
@Override
public boolean exactVersionAllowed() {
return false;
}
@Override
public boolean enableWebSocket() {
return false;
}
@Override
public boolean stopDependents() {
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy