11111
parent
afe53281d5
commit
f42ff2dd35
|
@ -67,7 +67,6 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bucket名称
|
* bucket名称
|
||||||
*
|
*
|
||||||
|
@ -77,6 +76,7 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 上传
|
* 上传
|
||||||
|
*
|
||||||
* @param versionClazz java源代码
|
* @param versionClazz java源代码
|
||||||
* @param className 类的名
|
* @param className 类的名
|
||||||
*/
|
*/
|
||||||
|
@ -98,6 +98,7 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, BasicEngine<DataValue>> engineMap = new ConcurrentHashMap<>();
|
static Map<String, BasicEngine<DataValue>> engineMap = new ConcurrentHashMap<>();
|
||||||
public static final String engineWorkSourcePath = "home/source/";
|
public static final String engineWorkSourcePath = "home/source/";
|
||||||
public static final String engineWorkClassPath = "home/class/";
|
public static final String engineWorkClassPath = "home/class/";
|
||||||
|
@ -106,7 +107,6 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
|
||||||
public static final String className_prefix = "com.muyu.rule.common.basic.engine.value.";
|
public static final String className_prefix = "com.muyu.rule.common.basic.engine.value.";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//todo
|
//todo
|
||||||
@Override
|
@Override
|
||||||
public void HotLoadClass(String className, String versionClazz) {
|
public void HotLoadClass(String className, String versionClazz) {
|
||||||
|
@ -192,29 +192,8 @@ log.info("规则引擎的编译参数{}[]",Arrays.toString(strings));
|
||||||
engine.execution();
|
engine.execution();
|
||||||
|
|
||||||
|
|
||||||
//对class文件进行自定义类加载规则引擎
|
|
||||||
// Map<String, Class<?>> stringClassMap = JavaBinaryClassLoader.loadClassesByLocation(engineConfig.getServerPack(), engineConfig.getClassPath());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// static Map<String, BasicEngine<DataValue>> engineMap = new ConcurrentHashMap<>();
|
|
||||||
//
|
|
||||||
// static {
|
|
||||||
// try {
|
|
||||||
// Class<?> aClass = Class.forName("com.muyu.rule.common.basic.engine.value.ENGINE_VALUE_VFD1000_V1");
|
|
||||||
// Class<?> aClass2 = Class.forName("com.muyu.rule.common.basic.engine.value.ENGINE_VALUE_VFD1000_V2");
|
|
||||||
// try {
|
|
||||||
// engineMap.put("ENGINE_VALUE_VFD1000_V1", (BasicEngine<DataValue>) aClass.newInstance());
|
|
||||||
// engineMap.put("ENGINE_VALUE_VFD1000_V2", (BasicEngine<DataValue>) aClass2.newInstance());
|
|
||||||
// } catch (InstantiationException e) {
|
|
||||||
// throw new RuntimeException(e);
|
|
||||||
// } catch (IllegalAccessException e) {
|
|
||||||
// throw new RuntimeException(e);
|
|
||||||
// }
|
|
||||||
// } catch (ClassNotFoundException e) {
|
|
||||||
// throw new RuntimeException(e);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void testValue(String versionClazz, DataValue dataValue) {
|
public void testValue(String versionClazz, DataValue dataValue) {
|
||||||
|
|
Loading…
Reference in New Issue