fe/src/main/java/org/apache/doris/plugin/PluginMgr.java
public boolean registerPlugin(PluginInfo pluginInfo, Plugin plugin) {
        if (Objects.isNull(pluginInfo) || Objects.isNull(plugin) || Objects.isNull(pluginInfo.getType())
                || Strings
                .isNullOrEmpty(pluginInfo.getName())) {
            return false;
        }

        PluginLoader loader = new BuiltinPluginLoader(Config.plugin_dir, pluginInfo, plugin);
        PluginLoader checkLoader =
                plugins[pluginInfo.getTypeId()].putIfAbsent(pluginInfo.getName(), loader);

        return checkLoader == null;
    }
/**
     * For built-in Plugin register
     */
For built-in Plugin register
For built - in Plugin register
public boolean registerPlugin(PluginInfo pluginInfo, Plugin plugin) {
        if (Objects.isNull(pluginInfo) || Objects.isNull(plugin) || Objects.isNull(pluginInfo.getType())
                || Strings
                .isNullOrEmpty(pluginInfo.getName())) {
            return false;
        }
        PluginLoader loader = new BuiltinPluginLoader(Config.plugin_dir, pluginInfo, plugin);
        PluginLoader checkLoader =
                plugins[pluginInfo.getTypeId()].putIfAbsent(pluginInfo.getName(), loader);
        return checkLoader == null;
    }
public boolean registerPlugin ( PluginInfo pluginInfo , Plugin plugin ) { if ( Objects . isNull ( pluginInfo ) || Objects . isNull ( plugin ) || Objects . isNull ( pluginInfo . getType ( ) ) || Strings . isNullOrEmpty ( pluginInfo . getName ( ) ) ) { return false ; } PluginLoader loader = new BuiltinPluginLoader ( Config . plugin_dir , pluginInfo , plugin ) ; PluginLoader checkLoader = plugins [ pluginInfo . getTypeId ( ) ] . putIfAbsent ( pluginInfo . getName ( ) , loader ) ; return checkLoader == null ; }
For built-in Plugin register
For built - in Plugin register