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 // examples.Examples this
0: .line 13
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // examples.Examples this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lexamples/Examples;
public void serviceAndSockJS(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 // examples.Examples this
start local 1 // io.vertx.core.Vertx vertx
0: .line 16
new examples.SomeDatabaseServiceImpl
dup
invokespecial examples.SomeDatabaseServiceImpl.<init>:()V
astore 2 /* service */
start local 2 // examples.SomeDatabaseService service
1: .line 17
new io.vertx.serviceproxy.ServiceBinder
dup
aload 1 /* vertx */
invokespecial io.vertx.serviceproxy.ServiceBinder.<init>:(Lio/vertx/core/Vertx;)V
2: .line 18
ldc "database-service-address"
invokevirtual io.vertx.serviceproxy.ServiceBinder.setAddress:(Ljava/lang/String;)Lio/vertx/serviceproxy/ServiceBinder;
3: .line 19
ldc Lexamples/SomeDatabaseService;
aload 2 /* service */
invokevirtual io.vertx.serviceproxy.ServiceBinder.register:(Ljava/lang/Class;Ljava/lang/Object;)Lio/vertx/core/eventbus/MessageConsumer;
pop
4: .line 21
aload 1 /* vertx */
invokestatic io.vertx.ext.web.Router.router:(Lio/vertx/core/Vertx;)Lio/vertx/ext/web/Router;
astore 3 /* router */
start local 3 // io.vertx.ext.web.Router router
5: .line 23
new io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions
dup
invokespecial io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions.<init>:()V
6: .line 24
new io.vertx.ext.bridge.PermittedOptions
dup
invokespecial io.vertx.ext.bridge.PermittedOptions.<init>:()V
7: .line 25
ldc "database-service-address"
invokevirtual io.vertx.ext.bridge.PermittedOptions.setAddress:(Ljava/lang/String;)Lio/vertx/ext/bridge/PermittedOptions;
8: .line 24
invokevirtual io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions.addInboundPermitted:(Lio/vertx/ext/bridge/PermittedOptions;)Lio/vertx/ext/web/handler/sockjs/SockJSBridgeOptions;
9: .line 26
new io.vertx.ext.bridge.PermittedOptions
dup
invokespecial io.vertx.ext.bridge.PermittedOptions.<init>:()V
10: .line 27
ldc "database-service-address"
invokevirtual io.vertx.ext.bridge.PermittedOptions.setAddress:(Ljava/lang/String;)Lio/vertx/ext/bridge/PermittedOptions;
11: .line 26
invokevirtual io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions.addOutboundPermitted:(Lio/vertx/ext/bridge/PermittedOptions;)Lio/vertx/ext/web/handler/sockjs/SockJSBridgeOptions;
12: .line 23
astore 4 /* opts */
start local 4 // io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions opts
13: .line 30
aload 3 /* router */
ldc "/eventbus"
aload 1 /* vertx */
invokestatic io.vertx.ext.web.handler.sockjs.SockJSHandler.create:(Lio/vertx/core/Vertx;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
aload 4 /* opts */
invokeinterface io.vertx.ext.web.handler.sockjs.SockJSHandler.bridge:(Lio/vertx/ext/web/handler/sockjs/SockJSBridgeOptions;)Lio/vertx/ext/web/Router;
invokeinterface io.vertx.ext.web.Router.mountSubRouter:(Ljava/lang/String;Lio/vertx/ext/web/Router;)Lio/vertx/ext/web/Route;
pop
14: .line 32
aload 1 /* vertx */
invokeinterface io.vertx.core.Vertx.createHttpServer:()Lio/vertx/core/http/HttpServer;
aload 3 /* router */
invokeinterface io.vertx.core.http.HttpServer.requestHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpServer;
sipush 8080
invokeinterface io.vertx.core.http.HttpServer.listen:(I)Lio/vertx/core/Future;
pop
15: .line 33
return
end local 4 // io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions opts
end local 3 // io.vertx.ext.web.Router router
end local 2 // examples.SomeDatabaseService service
end local 1 // io.vertx.core.Vertx vertx
end local 0 // examples.Examples this
LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lexamples/Examples;
0 16 1 vertx Lio/vertx/core/Vertx;
1 16 2 service Lexamples/SomeDatabaseService;
5 16 3 router Lio/vertx/ext/web/Router;
13 16 4 opts Lio/vertx/ext/web/handler/sockjs/SockJSBridgeOptions;
MethodParameters:
Name Flags
vertx
}
SourceFile: "Examples.java"