}
@PutMapping(value = "/{intentId}", produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity updateIntentById(
+ public ResponseEntity updateIntentManageById(
@PathVariable(value = "id") String id, @RequestBody IntentManagerRegInfo intentManage) {
- return ResponseEntity.ok(intentFunctionManageService.updateIntentById(id, intentManage));
+ return ResponseEntity.ok(intentFunctionManageService.updateIntentManageById(id, intentManage));
}
@GetMapping(value = "", produces = MediaType.APPLICATION_JSON_VALUE)
@Service("intentFunctionManageService")
public class IntentFunctionManageServiceImpl implements IntentFunctionManageService {
- @Autowired
+ @Autowired
private ApplicationContext applicationContext;
-
@Override
public int createFunctionManage(IntentManagerRegInfo intentManage) {
- IntentManagementFunction intentManagementFunction = (IntentManagementFunction)applicationContext.getBean("CLLBusinessIntentManagementFunction");
return 0;
}
}
@Override
- public int updateIntentById(String id, IntentManagerRegInfo intentManage) {
+ public int updateIntentManageById(String id, IntentManagerRegInfo intentManage) {
return 0;
}
return null;
}
- public List<IntentManagementFunction> filterHanleFunction(Intent intent) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
- String functionName ="CLLBusinessIntentManagementFunction";
+ public List<IntentManagementFunction> filterHandleFunction(IntentManagerRegInfo managementRegInfo) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
+ String managetFunctionRegName =managementRegInfo.getHandleName();
IntentManagementFunction function =
- (IntentManagementFunction)applicationContext.getBean(functionName);
+ (IntentManagementFunction)applicationContext.getBean(managetFunctionRegName);
ActuationModule actuationModule = function.getActuationModule();
actuationModule.sendToNonIntentHandler();
-//
IntentManagementFunction intentManagementFunction =
- (IntentManagementFunction) Class.forName(functionName)
+ (IntentManagementFunction) Class.forName(managetFunctionRegName)
.getDeclaredConstructor().newInstance();
ActuationModule actuationModule1 = intentManagementFunction.getActuationModule();
return null;