|
@@ -7,8 +7,6 @@ import org.springframework.beans.BeansException;
|
|
|
import org.springframework.beans.factory.config.BeanPostProcessor;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
-import javax.annotation.Nonnull;
|
|
|
-
|
|
|
/**
|
|
|
* 利用spring后置处理器注册流程委托对象
|
|
|
*/
|
|
@@ -17,7 +15,7 @@ import javax.annotation.Nonnull;
|
|
|
public class FlowBeanPostProcessor implements BeanPostProcessor {
|
|
|
|
|
|
@Override
|
|
|
- public Object postProcessAfterInitialization(@Nonnull Object bean, @Nonnull String beanName) throws BeansException {
|
|
|
+ public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
|
|
|
|
|
|
if (bean instanceof FlowDelegate) {
|
|
|
String flowKey = ((FlowDelegate) bean).getFlowKey();
|