Skip to content

Commit

Permalink
Merge pull request #1003 from weibocom/opt/getFactoryBeanType
Browse files Browse the repository at this point in the history
RefererConfigBean getObjectType not return null value
  • Loading branch information
rayzhang0603 authored Sep 27, 2022
2 parents 225b291 + 5cf686a commit ba3a624
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public T getObject() throws Exception {

@Override
public Class<?> getObjectType() {
return getInterface();
Class clz = getInterface();
if (clz == null){ // if interfaceClass is not set
clz = this.getClass(); // avoid being initialized prematurely before placeholder is processed
}
return clz;
}

@Override
Expand Down

0 comments on commit ba3a624

Please sign in to comment.