public final class jdk.internal.module.ServicesCatalog
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.module.ServicesCatalog
super_class: java.lang.Object
{
private final java.util.Map<java.lang.String, java.util.List<jdk.internal.module.ServicesCatalog$ServiceProvider>> map;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;>;
private static final jdk.internal.loader.ClassLoaderValue<jdk.internal.module.ServicesCatalog> CLV;
descriptor: Ljdk/internal/loader/ClassLoaderValue;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljdk/internal/loader/ClassLoaderValue<Ljdk/internal/module/ServicesCatalog;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.internal.loader.ClassLoaderValue
dup
invokespecial jdk.internal.loader.ClassLoaderValue.<init>:()V
putstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
bipush 32
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
putfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/ServicesCatalog;
public static jdk.internal.module.ServicesCatalog create();
descriptor: ()Ljdk/internal/module/ServicesCatalog;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.internal.module.ServicesCatalog
dup
invokespecial jdk.internal.module.ServicesCatalog.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
private void addProviders(java.lang.String, jdk.internal.module.ServicesCatalog$ServiceProvider[]);
descriptor: (Ljava/lang/String;[Ljdk/internal/module/ServicesCatalog$ServiceProvider;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 3
start local 3 1: aload 3
ifnonnull 7
2: new java.util.concurrent.CopyOnWriteArrayList
dup
aload 2
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:([Ljava/lang/Object;)V
astore 3
3: aload 0
getfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
aload 1
aload 3
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 4
start local 4 4: aload 4
ifnull 11
5: aload 4
aload 3
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 4 6: goto 11
7: StackMap locals: java.util.List
StackMap stack:
aload 2
arraylength
iconst_1
if_icmpne 10
8: aload 3
aload 2
iconst_0
aaload
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: goto 11
10: StackMap locals:
StackMap stack:
aload 3
aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/module/ServicesCatalog;
0 12 1 service Ljava/lang/String;
0 12 2 providers [Ljdk/internal/module/ServicesCatalog$ServiceProvider;
1 12 3 list Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
4 6 4 prev Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
MethodParameters:
Name Flags
service
providers
public void register(java.lang.Module);
descriptor: (Ljava/lang/Module;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Module.getDescriptor:()Ljava/lang/module/ModuleDescriptor;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.module.ModuleDescriptor.provides:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 13
StackMap locals: jdk.internal.module.ServicesCatalog java.lang.Module java.lang.module.ModuleDescriptor top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.module.ModuleDescriptor$Provides
astore 3
start local 3 3: aload 3
invokevirtual java.lang.module.ModuleDescriptor$Provides.service:()Ljava/lang/String;
astore 5
start local 5 4: aload 3
invokevirtual java.lang.module.ModuleDescriptor$Provides.providers:()Ljava/util/List;
astore 6
start local 6 5: aload 6
invokeinterface java.util.List.size:()I
istore 7
start local 7 6: iload 7
anewarray jdk.internal.module.ServicesCatalog$ServiceProvider
astore 8
start local 8 7: iconst_0
istore 9
start local 9 8: goto 11
9: StackMap locals: jdk.internal.module.ServicesCatalog java.lang.Module java.lang.module.ModuleDescriptor java.lang.module.ModuleDescriptor$Provides java.util.Iterator java.lang.String java.util.List int jdk.internal.module.ServicesCatalog$ServiceProvider[] int
StackMap stack:
aload 8
iload 9
new jdk.internal.module.ServicesCatalog$ServiceProvider
dup
aload 0
aload 1
aload 6
iload 9
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokespecial jdk.internal.module.ServicesCatalog$ServiceProvider.<init>:(Ljdk/internal/module/ServicesCatalog;Ljava/lang/Module;Ljava/lang/String;)V
aastore
10: iinc 9 1
StackMap locals:
StackMap stack:
11: iload 9
iload 7
if_icmplt 9
end local 9 12: aload 0
aload 5
aload 8
invokevirtual jdk.internal.module.ServicesCatalog.addProviders:(Ljava/lang/String;[Ljdk/internal/module/ServicesCatalog$ServiceProvider;)V
end local 8 end local 7 end local 6 end local 5 end local 3 13: StackMap locals: jdk.internal.module.ServicesCatalog java.lang.Module java.lang.module.ModuleDescriptor top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/module/ServicesCatalog;
0 15 1 module Ljava/lang/Module;
1 15 2 descriptor Ljava/lang/module/ModuleDescriptor;
3 13 3 provides Ljava/lang/module/ModuleDescriptor$Provides;
4 13 5 service Ljava/lang/String;
5 13 6 providerNames Ljava/util/List<Ljava/lang/String;>;
6 13 7 count I
7 13 8 providers [Ljdk/internal/module/ServicesCatalog$ServiceProvider;
8 12 9 i I
MethodParameters:
Name Flags
module
public void addProvider(java.lang.Module, java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
iconst_1
anewarray jdk.internal.module.ServicesCatalog$ServiceProvider
dup
iconst_0
new jdk.internal.module.ServicesCatalog$ServiceProvider
dup
aload 0
aload 1
aload 3
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokespecial jdk.internal.module.ServicesCatalog$ServiceProvider.<init>:(Ljdk/internal/module/ServicesCatalog;Ljava/lang/Module;Ljava/lang/String;)V
aastore
invokevirtual jdk.internal.module.ServicesCatalog.addProviders:(Ljava/lang/String;[Ljdk/internal/module/ServicesCatalog$ServiceProvider;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ServicesCatalog;
0 2 1 module Ljava/lang/Module;
0 2 2 service Ljava/lang/Class<*>;
0 2 3 impl Ljava/lang/Class<*>;
Signature: (Ljava/lang/Module;Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
module
service
impl
public java.util.List<jdk.internal.module.ServicesCatalog$ServiceProvider> findServices(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
aload 1
invokestatic java.util.List.of:()Ljava/util/List;
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ServicesCatalog;
0 1 1 service Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
MethodParameters:
Name Flags
service
public static jdk.internal.module.ServicesCatalog getServicesCatalogOrNull(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)Ljdk/internal/module/ServicesCatalog;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
aload 0
invokevirtual jdk.internal.loader.ClassLoaderValue.get:(Ljava/lang/ClassLoader;)Ljava/lang/Object;
checkcast jdk.internal.module.ServicesCatalog
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 loader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
loader
public static jdk.internal.module.ServicesCatalog getServicesCatalog(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)Ljdk/internal/module/ServicesCatalog;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
aload 0
invokevirtual jdk.internal.loader.ClassLoaderValue.get:(Ljava/lang/ClassLoader;)Ljava/lang/Object;
checkcast jdk.internal.module.ServicesCatalog
astore 1
start local 1 1: aload 1
ifnonnull 5
2: invokestatic jdk.internal.module.ServicesCatalog.create:()Ljdk/internal/module/ServicesCatalog;
astore 1
3: getstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
aload 0
aload 1
invokevirtual jdk.internal.loader.ClassLoaderValue.putIfAbsent:(Ljava/lang/ClassLoader;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.module.ServicesCatalog
astore 2
start local 2 4: aload 2
ifnull 5
aload 2
astore 1
end local 2 5: StackMap locals: jdk.internal.module.ServicesCatalog
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 loader Ljava/lang/ClassLoader;
1 6 1 catalog Ljdk/internal/module/ServicesCatalog;
4 5 2 previous Ljdk/internal/module/ServicesCatalog;
MethodParameters:
Name Flags
loader
public static void putServicesCatalog(java.lang.ClassLoader, jdk.internal.module.ServicesCatalog);
descriptor: (Ljava/lang/ClassLoader;Ljdk/internal/module/ServicesCatalog;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
aload 0
aload 1
invokevirtual jdk.internal.loader.ClassLoaderValue.putIfAbsent:(Ljava/lang/ClassLoader;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.module.ServicesCatalog
astore 2
start local 2 1: aload 2
ifnull 3
2: new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
3: StackMap locals: jdk.internal.module.ServicesCatalog
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 loader Ljava/lang/ClassLoader;
0 4 1 catalog Ljdk/internal/module/ServicesCatalog;
1 4 2 previous Ljdk/internal/module/ServicesCatalog;
MethodParameters:
Name Flags
loader
catalog
}
SourceFile: "ServicesCatalog.java"
NestMembers:
jdk.internal.module.ServicesCatalog$ServiceProvider
InnerClasses:
public final Provides = java.lang.module.ModuleDescriptor$Provides of java.lang.module.ModuleDescriptor
public final ServiceProvider = jdk.internal.module.ServicesCatalog$ServiceProvider of jdk.internal.module.ServicesCatalog