| | |
| | | Object bean = ApplicationContextProvider.getApplicationContext().getBean(beanName); |
| | | if(bean!=null){ |
| | | CodeSerialAlgorithmVO algorithmVO = new CodeSerialAlgorithmVO(); |
| | | //Advised advised = (Advised)bean; |
| | | //Advised advised = (Advised)bean; |
| | | Class<?> targetClass = AopUtils.getTargetClass(bean); |
| | | //Class<?> targetClass = advised.getTargetSource().getTargetClass(); |
| | | algorithmVO.setClassFullName(targetClass.getName()); |
| | | //algorithmVO.setClassFullName(beanName); |
| | | MdmSerialAlgorithm serialAlgorithm = targetClass.getDeclaredAnnotation(MdmSerialAlgorithm.class); |
| | | if(serialAlgorithm==null){ |
| | | serialAlgorithm = targetClass.getAnnotation(MdmSerialAlgorithm.class); |
| | |
| | | algorithmVO.setName(serialAlgorithm.text()); |
| | | algorithmVO.setDescription(serialAlgorithm.description()); |
| | | algorithmVO.setId(serialAlgorithm.value()); |
| | | algorithmVO.setSerialType(serialAlgorithm.serialType()); |
| | | if(StringUtils.isBlank(algorithmVO.getId())){ |
| | | algorithmVO.setId(beanName); |
| | | } |