mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
优化LocalContextAware中的反射构造对象的实现
This commit is contained in:
@@ -26,7 +26,7 @@ public class LocalContextAware implements ContextAware {
|
||||
|
||||
@Override
|
||||
public <T> T registerBean(String beanName, Class<T> clazz) {
|
||||
return ReflectUtil.newInstance(clazz);
|
||||
return ReflectUtil.newInstanceIfPossible(clazz);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user