public class io.vertx.servicediscovery.impl.ServiceTypes
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.servicediscovery.impl.ServiceTypes
super_class: java.lang.Object
{
private static java.util.ServiceLoader<io.vertx.servicediscovery.spi.ServiceType> types;
descriptor: Ljava/util/ServiceLoader;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/ServiceLoader<Lio/vertx/servicediscovery/spi/ServiceType;>;
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/servicediscovery/impl/ServiceTypes;
public static synchronized io.vertx.servicediscovery.spi.ServiceType get(io.vertx.servicediscovery.Record);
descriptor: (Lio/vertx/servicediscovery/Record;)Lio/vertx/servicediscovery/spi/ServiceType;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=1
start local 0 0: invokestatic io.vertx.servicediscovery.impl.ServiceTypes.load:()V
1: aload 0
invokevirtual io.vertx.servicediscovery.Record.getType:()Ljava/lang/String;
astore 1
start local 1 2: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 1
invokestatic io.vertx.servicediscovery.impl.ServiceTypes.get:(Ljava/lang/String;)Lio/vertx/servicediscovery/spi/ServiceType;
astore 2
start local 2 4: aload 2
ifnull 6
5: aload 2
areturn
6: StackMap locals: java.lang.String io.vertx.servicediscovery.spi.ServiceType
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported service type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 record Lio/vertx/servicediscovery/Record;
2 7 1 type Ljava/lang/String;
4 7 2 found Lio/vertx/servicediscovery/spi/ServiceType;
MethodParameters:
Name Flags
record
private static synchronized void load();
descriptor: ()V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic io.vertx.servicediscovery.impl.ServiceTypes.types:Ljava/util/ServiceLoader;
ifnull 1
getstatic io.vertx.servicediscovery.impl.ServiceTypes.types:Ljava/util/ServiceLoader;
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
1: StackMap locals:
StackMap stack:
ldc Lio/vertx/servicediscovery/spi/ServiceType;
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;)Ljava/util/ServiceLoader;
putstatic io.vertx.servicediscovery.impl.ServiceTypes.types:Ljava/util/ServiceLoader;
2: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
public static synchronized java.util.Iterator<io.vertx.servicediscovery.spi.ServiceType> all();
descriptor: ()Ljava/util/Iterator;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: invokestatic io.vertx.servicediscovery.impl.ServiceTypes.load:()V
1: getstatic io.vertx.servicediscovery.impl.ServiceTypes.types:Ljava/util/ServiceLoader;
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Iterator<Lio/vertx/servicediscovery/spi/ServiceType;>;
public static synchronized io.vertx.servicediscovery.spi.ServiceType get(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/servicediscovery/spi/ServiceType;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic io.vertx.servicediscovery.impl.ServiceTypes.load:()V
1: getstatic io.vertx.servicediscovery.impl.ServiceTypes.types:Ljava/util/ServiceLoader;
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 2
goto 5
StackMap locals: java.lang.String top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.servicediscovery.spi.ServiceType
astore 1
start local 1 3: aload 1
invokeinterface io.vertx.servicediscovery.spi.ServiceType.name:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
4: aload 1
areturn
end local 1 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 type Ljava/lang/String;
3 5 1 next Lio/vertx/servicediscovery/spi/ServiceType;
MethodParameters:
Name Flags
type
}
SourceFile: "ServiceTypes.java"