Files
MoGoEagleEye/foudations/httpdns-base/src/main/java/com/mogo/httpdns/MogoHttpDnsHandler.java
2020-12-25 17:57:27 +08:00

34 lines
649 B
Java

package com.mogo.httpdns;
import androidx.annotation.Keep;
import com.alibaba.android.arouter.launcher.ARouter;
public
/**
* @author congtaowang
* @since 2020/11/19
*
* 描述
*/
@Keep
class MogoHttpDnsHandler {
private MogoHttpDnsHandler(){
}
private static IMogoHttpDns sHttpDns;
public static IMogoHttpDns getHttpDnsApi() {
if ( sHttpDns == null ) {
synchronized ( MogoHttpDnsHandler.class ) {
if ( sHttpDns == null ) {
sHttpDns = ARouter.getInstance().navigation( IMogoHttpDns.class );
}
}
}
return sHttpDns;
}
}