public class examples.ConfigConsulExamples
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: examples.ConfigConsulExamples
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // examples.ConfigConsulExamples this
0: .line 29
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // examples.ConfigConsulExamples this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lexamples/ConfigConsulExamples;
public void example1(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 // examples.ConfigConsulExamples this
start local 1 // io.vertx.core.Vertx vertx
0: .line 33
new io.vertx.config.ConfigStoreOptions
dup
invokespecial io.vertx.config.ConfigStoreOptions.<init>:()V
1: .line 34
ldc "consul"
invokevirtual io.vertx.config.ConfigStoreOptions.setType:(Ljava/lang/String;)Lio/vertx/config/ConfigStoreOptions;
2: .line 35
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
3: .line 36
ldc "host"
ldc "localhost"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
4: .line 37
ldc "port"
sipush 8500
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
5: .line 38
ldc "prefix"
ldc "foo"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
6: .line 39
ldc "raw-data"
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
7: .line 35
invokevirtual io.vertx.config.ConfigStoreOptions.setConfig:(Lio/vertx/core/json/JsonObject;)Lio/vertx/config/ConfigStoreOptions;
8: .line 33
astore 2 /* store */
start local 2 // io.vertx.config.ConfigStoreOptions store
9: .line 42
aload 1 /* vertx */
10: .line 43
new io.vertx.config.ConfigRetrieverOptions
dup
invokespecial io.vertx.config.ConfigRetrieverOptions.<init>:()V
aload 2 /* store */
invokevirtual io.vertx.config.ConfigRetrieverOptions.addStore:(Lio/vertx/config/ConfigStoreOptions;)Lio/vertx/config/ConfigRetrieverOptions;
11: .line 42
invokestatic io.vertx.config.ConfigRetriever.create:(Lio/vertx/core/Vertx;Lio/vertx/config/ConfigRetrieverOptions;)Lio/vertx/config/ConfigRetriever;
pop
12: .line 44
return
end local 2 // io.vertx.config.ConfigStoreOptions store
end local 1 // io.vertx.core.Vertx vertx
end local 0 // examples.ConfigConsulExamples this
LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lexamples/ConfigConsulExamples;
0 13 1 vertx Lio/vertx/core/Vertx;
9 13 2 store Lio/vertx/config/ConfigStoreOptions;
MethodParameters:
Name Flags
vertx
}
SourceFile: "ConfigConsulExamples.java"