/**
* Create a new {@link ApplicationHome} instance.
*/
public ApplicationHome() {
this(null);
}
/**
* Create a new {@link ApplicationHome} instance for the specified source class.
* @param sourceClass the source class or {@code null}
*/
public ApplicationHome(Class<?> sourceClass) {
this.source = findSource(sourceClass == null ? getClass() : sourceClass);
this.dir = findHomeDir(this.source);
}
这里的this(null)指的是当前构造器调用之后的构造器,起连接作用。