public class io.vertx.service.ServiceVerticleFactory implements io.vertx.core.spi.VerticleFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.service.ServiceVerticleFactory
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 Lio/vertx/service/ServiceVerticleFactory;
public boolean requiresResolve();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/service/ServiceVerticleFactory;
public void resolve(java.lang.String, io.vertx.core.DeploymentOptions, java.lang.ClassLoader, io.vertx.core.Promise<java.lang.String>);
descriptor: (Ljava/lang/String;Lio/vertx/core/DeploymentOptions;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=15, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokestatic io.vertx.core.spi.VerticleFactory.removePrefix:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".json"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 2: aconst_null
astore 8
aconst_null
astore 9
3: aload 3
aload 5
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 10
start local 10 4: aload 10
ifnonnull 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Cannot find service descriptor file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " on classpath"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: io.vertx.service.ServiceVerticleFactory java.lang.String io.vertx.core.DeploymentOptions java.lang.ClassLoader io.vertx.core.Promise java.lang.String top top java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aconst_null
astore 11
aconst_null
astore 12
7: new java.util.Scanner
dup
aload 10
ldc "UTF-8"
invokespecial java.util.Scanner.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
ldc "\\A"
invokevirtual java.util.Scanner.useDelimiter:(Ljava/lang/String;)Ljava/util/Scanner;
astore 13
start local 13 8: aload 13
invokevirtual java.util.Scanner.next:()Ljava/lang/String;
astore 14
start local 14 9: new io.vertx.core.json.JsonObject
dup
aload 14
invokespecial io.vertx.core.json.JsonObject.<init>:(Ljava/lang/String;)V
astore 6
end local 14 start local 6 10: aload 13
ifnull 20
aload 13
invokevirtual java.util.Scanner.close:()V
goto 20
end local 6 StackMap locals: io.vertx.service.ServiceVerticleFactory java.lang.String io.vertx.core.DeploymentOptions java.lang.ClassLoader io.vertx.core.Promise java.lang.String top top java.lang.Throwable java.lang.Throwable java.io.InputStream java.lang.Throwable java.lang.Throwable java.util.Scanner
StackMap stack: java.lang.Throwable
11: astore 11
aload 13
ifnull 12
aload 13
invokevirtual java.util.Scanner.close:()V
end local 13 StackMap locals:
StackMap stack:
12: aload 11
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 12
aload 11
ifnonnull 14
aload 12
astore 11
goto 15
StackMap locals:
StackMap stack:
14: aload 11
aload 12
if_acmpeq 15
aload 11
aload 12
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 11
athrow
StackMap locals: io.vertx.service.ServiceVerticleFactory java.lang.String io.vertx.core.DeploymentOptions java.lang.ClassLoader io.vertx.core.Promise java.lang.String top top java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.util.NoSuchElementException
16: pop
17: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " is empty"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack: io.vertx.core.json.DecodeException
pop
19: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " contains invalid json"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 6 20: StackMap locals: io.vertx.service.ServiceVerticleFactory java.lang.String io.vertx.core.DeploymentOptions java.lang.ClassLoader io.vertx.core.Promise java.lang.String io.vertx.core.json.JsonObject top java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 10
ifnull 26
aload 10
invokevirtual java.io.InputStream.close:()V
goto 26
end local 6 StackMap locals: io.vertx.service.ServiceVerticleFactory java.lang.String io.vertx.core.DeploymentOptions java.lang.ClassLoader io.vertx.core.Promise java.lang.String top top java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
21: astore 8
aload 10
ifnull 22
aload 10
invokevirtual java.io.InputStream.close:()V
end local 10 StackMap locals:
StackMap stack:
22: aload 8
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 9
aload 8
ifnonnull 24
aload 9
astore 8
goto 25
StackMap locals:
StackMap stack:
24: aload 8
aload 9
if_acmpeq 25
aload 8
aload 9
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
25: aload 8
athrow
start local 6 26: StackMap locals: io.vertx.service.ServiceVerticleFactory java.lang.String io.vertx.core.DeploymentOptions java.lang.ClassLoader io.vertx.core.Promise java.lang.String io.vertx.core.json.JsonObject
StackMap stack:
aload 6
ldc "main"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 27: aload 7
ifnonnull 29
28: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " does not contain a main field"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
29: StackMap locals: java.lang.String
StackMap stack:
aload 2
invokevirtual io.vertx.core.DeploymentOptions.toJson:()Lio/vertx/core/json/JsonObject;
astore 8
start local 8 30: aload 8
ldc "config"
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
astore 9
start local 9 31: aload 6
ldc "options"
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
astore 10
start local 10 32: aload 10
ldc "config"
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
astore 11
start local 11 33: aload 8
aload 10
invokevirtual io.vertx.core.json.JsonObject.mergeIn:(Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
34: aload 11
aload 9
invokevirtual io.vertx.core.json.JsonObject.mergeIn:(Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
35: aload 8
ldc "config"
aload 11
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
36: aload 2
aload 8
invokevirtual io.vertx.core.DeploymentOptions.fromJson:(Lio/vertx/core/json/JsonObject;)V
37: aload 4
aload 7
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 38: goto 41
StackMap locals: io.vertx.service.ServiceVerticleFactory java.lang.String io.vertx.core.DeploymentOptions java.lang.ClassLoader io.vertx.core.Promise java.lang.String
StackMap stack: java.lang.Exception
39: astore 6
start local 6 40: aload 4
aload 6
invokeinterface io.vertx.core.Promise.fail:(Ljava/lang/Throwable;)V
end local 6 41: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lio/vertx/service/ServiceVerticleFactory;
0 42 1 identifier Ljava/lang/String;
0 42 2 deploymentOptions Lio/vertx/core/DeploymentOptions;
0 42 3 classLoader Ljava/lang/ClassLoader;
0 42 4 resolution Lio/vertx/core/Promise<Ljava/lang/String;>;
2 42 5 descriptorFile Ljava/lang/String;
10 11 6 descriptor Lio/vertx/core/json/JsonObject;
20 21 6 descriptor Lio/vertx/core/json/JsonObject;
26 38 6 descriptor Lio/vertx/core/json/JsonObject;
27 38 7 main Ljava/lang/String;
4 22 10 is Ljava/io/InputStream;
8 12 13 scanner Ljava/util/Scanner;
9 10 14 conf Ljava/lang/String;
30 38 8 depOptions Lio/vertx/core/json/JsonObject;
31 38 9 depConfig Lio/vertx/core/json/JsonObject;
32 38 10 serviceOptions Lio/vertx/core/json/JsonObject;
33 38 11 serviceConfig Lio/vertx/core/json/JsonObject;
40 41 6 e Ljava/lang/Exception;
Exception table:
from to target type
8 10 11 any
7 13 13 any
6 16 16 Class java.util.NoSuchElementException
6 16 18 Class io.vertx.core.json.DecodeException
4 20 21 any
3 23 23 any
2 38 39 Class java.lang.Exception
Signature: (Ljava/lang/String;Lio/vertx/core/DeploymentOptions;Ljava/lang/ClassLoader;Lio/vertx/core/Promise<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
identifier
deploymentOptions
classLoader
resolution
public java.lang.String prefix();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "service"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/service/ServiceVerticleFactory;
public io.vertx.core.Verticle createVerticle(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Lio/vertx/core/Verticle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.IllegalStateException
dup
ldc "Shouldn't be called"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/service/ServiceVerticleFactory;
0 1 1 verticleName Ljava/lang/String;
0 1 2 classLoader Ljava/lang/ClassLoader;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
verticleName
classLoader
}
SourceFile: "ServiceVerticleFactory.java"