NewsViewSdkHostDelegate.smali

.class public Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;
.super Ljava/lang/Object;
.source "NewsViewSdkHostDelegate.java"


# static fields
.field private static sHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

.field private static sSimpleHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 11
    new-instance v0, Lcom/cm/plugincluster/newsviewsdk/host/DefaultNewsViewSdkHostModuleImpl;

    invoke-direct {v0}, Lcom/cm/plugincluster/newsviewsdk/host/DefaultNewsViewSdkHostModuleImpl;-><init>()V

    sput-object v0, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;->sSimpleHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 9
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getHostModule()Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;
    .registers 3

    .prologue
    .line 14
    sget-object v0, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;->sHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    if-eqz v0, :cond_7

    .line 15
    sget-object v0, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;->sHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    .line 26
    :goto_6
    return-object v0

    .line 18
    :cond_7
    const-class v1, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;

    monitor-enter v1

    .line 19
    const v0, 0x172001

    const/4 v2, 0x0

    :try_start_e
    new-array v2, v2, [Ljava/lang/Object;

    invoke-static {v0, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    sput-object v0, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;->sHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    .line 20
    monitor-exit v1
    :try_end_19
    .catchall {:try_start_e .. :try_end_19} :catchall_20

    .line 21
    sget-object v0, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;->sHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    if-nez v0, :cond_23

    .line 22
    sget-object v0, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;->sSimpleHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    goto :goto_6

    .line 20
    :catchall_20
    move-exception v0

    :try_start_21
    monitor-exit v1
    :try_end_22
    .catchall {:try_start_21 .. :try_end_22} :catchall_20

    throw v0

    .line 24
    :cond_23
    sget-object v0, Lcom/cm/plugincluster/newsviewsdk/host/NewsViewSdkHostDelegate;->sHostModule:Lcom/cm/plugincluster/newsviewsdk/host/INewsViewSdkHostModule;

    goto :goto_6
.end method