LostStarsCommander.smali
.class public Lcom/cm/plugincluster/loststars/LostStarsCommander;
.super Ljava/lang/Object;
.source "LostStarsCommander.java"
# static fields
.field private static volatile mHostCommander:Lcom/cm/plugincluster/spec/ICommander;
.field private static volatile mPluginCommander:Lcom/cm/plugincluster/spec/ICommander;
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 11
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static getHostCommander()Lcom/cm/plugincluster/spec/ICommander;
.registers 2
.prologue
.line 16
sget-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mHostCommander:Lcom/cm/plugincluster/spec/ICommander;
if-nez v0, :cond_13
.line 17
const-class v1, Lcom/cm/plugincluster/loststars/LostStarsCommander;
monitor-enter v1
.line 18
:try_start_7
sget-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mHostCommander:Lcom/cm/plugincluster/spec/ICommander;
if-nez v0, :cond_12
.line 19
new-instance v0, Lcom/cm/plugincluster/spec/BaseCommander;
invoke-direct {v0}, Lcom/cm/plugincluster/spec/BaseCommander;-><init>()V
sput-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mHostCommander:Lcom/cm/plugincluster/spec/ICommander;
.line 21
:cond_12
monitor-exit v1
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_16
.line 23
:cond_13
sget-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mHostCommander:Lcom/cm/plugincluster/spec/ICommander;
return-object v0
.line 21
:catchall_16
move-exception v0
:try_start_17
monitor-exit v1
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method private static getPluginCommander()Lcom/cm/plugincluster/spec/ICommander;
.registers 2
.prologue
.line 35
sget-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mPluginCommander:Lcom/cm/plugincluster/spec/ICommander;
if-nez v0, :cond_13
.line 36
const-class v1, Lcom/cm/plugincluster/loststars/LostStarsCommander;
monitor-enter v1
.line 37
:try_start_7
sget-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mPluginCommander:Lcom/cm/plugincluster/spec/ICommander;
if-nez v0, :cond_12
.line 38
new-instance v0, Lcom/cm/plugincluster/spec/BaseCommander;
invoke-direct {v0}, Lcom/cm/plugincluster/spec/BaseCommander;-><init>()V
sput-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mPluginCommander:Lcom/cm/plugincluster/spec/ICommander;
.line 40
:cond_12
monitor-exit v1
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_16
.line 42
:cond_13
sget-object v0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mPluginCommander:Lcom/cm/plugincluster/spec/ICommander;
return-object v0
.line 40
:catchall_16
move-exception v0
:try_start_17
monitor-exit v1
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method public static injectHostCommander(Lcom/cm/plugincluster/spec/ICommander;)V
.registers 3
.prologue
.line 27
if-eqz p0, :cond_8
.line 28
const-class v1, Lcom/cm/plugincluster/loststars/LostStarsCommander;
monitor-enter v1
.line 29
:try_start_5
sput-object p0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mHostCommander:Lcom/cm/plugincluster/spec/ICommander;
.line 30
monitor-exit v1
.line 32
:cond_8
return-void
.line 30
:catchall_9
move-exception v0
monitor-exit v1
:try_end_b
.catchall {:try_start_5 .. :try_end_b} :catchall_9
throw v0
.end method
.method public static injectPluginCommander(Lcom/cm/plugincluster/spec/ICommander;)V
.registers 3
.prologue
.line 46
if-eqz p0, :cond_8
.line 47
const-class v1, Lcom/cm/plugincluster/loststars/LostStarsCommander;
monitor-enter v1
.line 48
:try_start_5
sput-object p0, Lcom/cm/plugincluster/loststars/LostStarsCommander;->mPluginCommander:Lcom/cm/plugincluster/spec/ICommander;
.line 49
monitor-exit v1
.line 51
:cond_8
return-void
.line 49
:catchall_9
move-exception v0
monitor-exit v1
:try_end_b
.catchall {:try_start_5 .. :try_end_b} :catchall_9
throw v0
.end method
.method public static varargs invokeHost(I[Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NoSuchMethodException;
}
.end annotation
.prologue
.line 54
invoke-static {}, Lcom/cm/plugincluster/loststars/LostStarsCommander;->getHostCommander()Lcom/cm/plugincluster/spec/ICommander;
move-result-object v0
invoke-interface {v0, p0, p1}, Lcom/cm/plugincluster/spec/ICommander;->invoke(I[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public static varargs invokePlugin(I[Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NoSuchMethodException;
}
.end annotation
.prologue
.line 58
invoke-static {}, Lcom/cm/plugincluster/loststars/LostStarsCommander;->getPluginCommander()Lcom/cm/plugincluster/spec/ICommander;
move-result-object v0
invoke-interface {v0, p0, p1}, Lcom/cm/plugincluster/spec/ICommander;->invoke(I[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method