170 lines
3.9 KiB
Smali
170 lines
3.9 KiB
Smali
.class public Lorg/greenrobot/eventbus/EventBusBuilder;
|
|
.super Ljava/lang/Object;
|
|
.source "EventBusBuilder.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final k:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
# instance fields
|
|
.field a:Z
|
|
|
|
.field b:Z
|
|
|
|
.field c:Z
|
|
|
|
.field d:Z
|
|
|
|
.field e:Z
|
|
|
|
.field f:Z
|
|
|
|
.field g:Z
|
|
|
|
.field h:Z
|
|
|
|
.field i:Ljava/util/concurrent/ExecutorService;
|
|
|
|
.field j:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lorg/greenrobot/eventbus/meta/SubscriberInfoIndex;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 30
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lorg/greenrobot/eventbus/EventBusBuilder;->k:Ljava/util/concurrent/ExecutorService;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 44
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 32
|
|
iput-boolean v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->a:Z
|
|
|
|
.line 33
|
|
iput-boolean v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->b:Z
|
|
|
|
.line 34
|
|
iput-boolean v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->c:Z
|
|
|
|
.line 35
|
|
iput-boolean v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->d:Z
|
|
|
|
.line 37
|
|
iput-boolean v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->f:Z
|
|
|
|
.line 40
|
|
sget-object v0, Lorg/greenrobot/eventbus/EventBusBuilder;->k:Ljava/util/concurrent/ExecutorService;
|
|
|
|
iput-object v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->i:Ljava/util/concurrent/ExecutorService;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Lorg/greenrobot/eventbus/EventBus;
|
|
.locals 3
|
|
|
|
.line 147
|
|
const-class v0, Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 148
|
|
:try_start_0
|
|
sget-object v1, Lorg/greenrobot/eventbus/EventBus;->b:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 152
|
|
invoke-virtual {p0}, Lorg/greenrobot/eventbus/EventBusBuilder;->b()Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lorg/greenrobot/eventbus/EventBus;->b:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
.line 153
|
|
sget-object v1, Lorg/greenrobot/eventbus/EventBus;->b:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
.line 149
|
|
:cond_0
|
|
new-instance v1, Lorg/greenrobot/eventbus/EventBusException;
|
|
|
|
const-string v2, "Default instance already exists. It may be only set once before it\'s used the first time to ensure consistent behavior."
|
|
|
|
invoke-direct {v1, v2}, Lorg/greenrobot/eventbus/EventBusException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 154
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public a(Lorg/greenrobot/eventbus/meta/SubscriberInfoIndex;)Lorg/greenrobot/eventbus/EventBusBuilder;
|
|
.locals 1
|
|
|
|
.line 133
|
|
iget-object v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->j:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 134
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->j:Ljava/util/List;
|
|
|
|
.line 136
|
|
:cond_0
|
|
iget-object v0, p0, Lorg/greenrobot/eventbus/EventBusBuilder;->j:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public b()Lorg/greenrobot/eventbus/EventBus;
|
|
.locals 1
|
|
|
|
.line 159
|
|
new-instance v0, Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
invoke-direct {v0, p0}, Lorg/greenrobot/eventbus/EventBus;-><init>(Lorg/greenrobot/eventbus/EventBusBuilder;)V
|
|
|
|
return-object v0
|
|
.end method
|