NegativeScreenHostDelegate.smali

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


# static fields
.field private static sHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

.field private static sSimpleHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;


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

    .prologue
    .line 12
    new-instance v0, Lcom/cm/plugincluster/nagativescreen/host/DefaultNegativeScreenHostModuleImpl;

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

    sput-object v0, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;->sSimpleHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

    return-void
.end method

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

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

    return-void
.end method

.method public static getHostModule()Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;
    .registers 3

    .prologue
    .line 15
    sget-object v0, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;->sHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

    if-eqz v0, :cond_7

    .line 16
    sget-object v0, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;->sHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

    .line 27
    :goto_6
    return-object v0

    .line 19
    :cond_7
    const-class v1, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;

    monitor-enter v1

    .line 20
    const v0, 0x15e001

    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/nagativescreen/host/INegativeScreenHostModule;

    sput-object v0, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;->sHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

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

    .line 22
    sget-object v0, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;->sHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

    if-nez v0, :cond_23

    .line 23
    sget-object v0, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;->sSimpleHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

    goto :goto_6

    .line 21
    :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 25
    :cond_23
    sget-object v0, Lcom/cm/plugincluster/nagativescreen/host/NegativeScreenHostDelegate;->sHostModule:Lcom/cm/plugincluster/nagativescreen/host/INegativeScreenHostModule;

    goto :goto_6
.end method