删除多余的PluginLoader接口定义

删除多余的PluginLoader接口定义
This commit is contained in:
FuYouJ 2023-07-29 21:46:44 +08:00
parent d747e1d292
commit c02f6566bf
4 changed files with 6 additions and 24 deletions

View File

@ -653,7 +653,6 @@ public class JobContainer extends AbstractContainer {
*/
private Reader.Job initJobReader(
JobPluginCollector jobPluginCollector) {
//TODO loadUtil加载或者是 pluginUtil加载
this.readerPluginName = this.configuration.getString(
CoreConstant.DATAX_JOB_CONTENT_READER_NAME);
classLoaderSwapper.setCurrentThreadClassLoader(LoadUtil.getJarLoader(

View File

@ -15,7 +15,7 @@ import java.util.List;
/**
* 提供Jar隔离的加载机制会把传入的路径及其子路径以及路径中的jar文件加入到class path
*/
public class JarLoader extends URLClassLoader implements PluginLoader{
public class JarLoader extends URLClassLoader{
public JarLoader(String[] paths) {
this(paths, JarLoader.class.getClassLoader());
}

View File

@ -1,10 +1,9 @@
package com.alibaba.datax.core.util.container;
/**
* {@code Author} FuYouJ
* {@code Date} 2023/7/23 16:52
* @author fuyouj
*/
public class PluginClassLoader extends ClassLoader implements PluginLoader{
/**
* @author fuyouj
* ClassLoader 抽象类的具体实现类,用于在运行时反射加载插件
*/
public class PluginClassLoader extends ClassLoader{
}

View File

@ -1,16 +0,0 @@
package com.alibaba.datax.core.util.container;
/**
* @author fuyouj
*/
public interface PluginLoader {
/**
* 加载插件对象
*
* @param name 类全限定名
* @return class对象
* @throws ClassNotFoundException
*/
Class<?> loadClass(String name) throws ClassNotFoundException;
}