public class examples.Examples
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: examples.Examples
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 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lexamples/Examples;
public void example1(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 1: aload 2
ldc "collection"
ldc "mycollection"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
2: ldc "document"
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "name"
ldc "tim"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
3: new io.vertx.core.eventbus.DeliveryOptions
dup
invokespecial io.vertx.core.eventbus.DeliveryOptions.<init>:()V
ldc "action"
ldc "save"
invokevirtual io.vertx.core.eventbus.DeliveryOptions.addHeader:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/eventbus/DeliveryOptions;
astore 3
start local 3 4: aload 1
invokeinterface io.vertx.core.Vertx.eventBus:()Lio/vertx/core/eventbus/EventBus;
ldc "database-service-address"
aload 2
aload 3
invokedynamic handle()Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
examples/Examples.lambda$0(Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.eventbus.EventBus.send:(Ljava/lang/String;Ljava/lang/Object;Lio/vertx/core/eventbus/DeliveryOptions;Lio/vertx/core/Handler;)Lio/vertx/core/eventbus/EventBus;
pop
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lexamples/Examples;
0 6 1 vertx Lio/vertx/core/Vertx;
1 6 2 message Lio/vertx/core/json/JsonObject;
4 6 3 options Lio/vertx/core/eventbus/DeliveryOptions;
MethodParameters:
Name Flags
vertx
public void example2(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
1: ldc "database-service-address"
2: invokestatic examples.SomeDatabaseService.createProxy:(Lio/vertx/core/Vertx;Ljava/lang/String;)Lexamples/SomeDatabaseService;
astore 2
start local 2 3: aload 2
ldc "mycollection"
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "name"
ldc "tim"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
invokedynamic handle()Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
examples/Examples.lambda$1(Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface examples.SomeDatabaseService.save:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;Lio/vertx/core/Handler;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lexamples/Examples;
0 5 1 vertx Lio/vertx/core/Vertx;
3 5 2 service Lexamples/SomeDatabaseService;
MethodParameters:
Name Flags
vertx
public void register(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new examples.SomeDatabaseServiceImpl
dup
invokespecial examples.SomeDatabaseServiceImpl.<init>:()V
astore 2
start local 2 1: new io.vertx.serviceproxy.ServiceBinder
dup
aload 1
invokespecial io.vertx.serviceproxy.ServiceBinder.<init>:(Lio/vertx/core/Vertx;)V
2: ldc "database-service-address"
invokevirtual io.vertx.serviceproxy.ServiceBinder.setAddress:(Ljava/lang/String;)Lio/vertx/serviceproxy/ServiceBinder;
3: ldc Lexamples/SomeDatabaseService;
aload 2
invokevirtual io.vertx.serviceproxy.ServiceBinder.register:(Ljava/lang/Class;Ljava/lang/Object;)Lio/vertx/core/eventbus/MessageConsumer;
pop
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lexamples/Examples;
0 5 1 vertx Lio/vertx/core/Vertx;
1 5 2 service Lexamples/SomeDatabaseService;
MethodParameters:
Name Flags
vertx
public void unregister(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new io.vertx.serviceproxy.ServiceBinder
dup
aload 1
invokespecial io.vertx.serviceproxy.ServiceBinder.<init>:(Lio/vertx/core/Vertx;)V
astore 2
start local 2 1: new examples.SomeDatabaseServiceImpl
dup
invokespecial examples.SomeDatabaseServiceImpl.<init>:()V
astore 3
start local 3 2: aload 2
3: ldc "database-service-address"
invokevirtual io.vertx.serviceproxy.ServiceBinder.setAddress:(Ljava/lang/String;)Lio/vertx/serviceproxy/ServiceBinder;
4: ldc Lexamples/SomeDatabaseService;
aload 3
invokevirtual io.vertx.serviceproxy.ServiceBinder.register:(Ljava/lang/Class;Ljava/lang/Object;)Lio/vertx/core/eventbus/MessageConsumer;
5: astore 4
start local 4 6: aload 2
aload 4
invokevirtual io.vertx.serviceproxy.ServiceBinder.unregister:(Lio/vertx/core/eventbus/MessageConsumer;)V
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lexamples/Examples;
0 8 1 vertx Lio/vertx/core/Vertx;
1 8 2 binder Lio/vertx/serviceproxy/ServiceBinder;
2 8 3 service Lexamples/SomeDatabaseService;
6 8 4 consumer Lio/vertx/core/eventbus/MessageConsumer<Lio/vertx/core/json/JsonObject;>;
MethodParameters:
Name Flags
vertx
public void proxyCreation(io.vertx.core.Vertx, io.vertx.core.eventbus.DeliveryOptions);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/eventbus/DeliveryOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new io.vertx.serviceproxy.ServiceProxyBuilder
dup
aload 1
invokespecial io.vertx.serviceproxy.ServiceProxyBuilder.<init>:(Lio/vertx/core/Vertx;)V
ldc "database-service-address"
invokevirtual io.vertx.serviceproxy.ServiceProxyBuilder.setAddress:(Ljava/lang/String;)Lio/vertx/serviceproxy/ServiceProxyBuilder;
astore 3
start local 3 1: aload 3
ldc Lexamples/SomeDatabaseService;
invokevirtual io.vertx.serviceproxy.ServiceProxyBuilder.build:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast examples.SomeDatabaseService
pop
2: aload 3
aload 2
invokevirtual io.vertx.serviceproxy.ServiceProxyBuilder.setOptions:(Lio/vertx/core/eventbus/DeliveryOptions;)Lio/vertx/serviceproxy/ServiceProxyBuilder;
ldc Lexamples/SomeDatabaseService;
invokevirtual io.vertx.serviceproxy.ServiceProxyBuilder.build:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast examples.SomeDatabaseService
pop
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lexamples/Examples;
0 4 1 vertx Lio/vertx/core/Vertx;
0 4 2 options Lio/vertx/core/eventbus/DeliveryOptions;
1 4 3 builder Lio/vertx/serviceproxy/ServiceProxyBuilder;
MethodParameters:
Name Flags
vertx
options
private static void lambda$0(io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 res2 Lio/vertx/core/AsyncResult<Lio/vertx/core/eventbus/Message<Ljava/lang/Object;>;>;
private static void lambda$1(io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 res2 Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;
}
SourceFile: "Examples.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles