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=3, 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
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()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 java.util.List<jdk.internal.module.ServicesCatalog$ServiceProvider> providers(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 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 2
start local 2 1: aload 2
ifnonnull 6
2: new java.util.concurrent.CopyOnWriteArrayList
dup
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
astore 2
3: aload 0
getfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 3
astore 2
end local 3 6: StackMap locals: java.util.List
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/module/ServicesCatalog;
0 7 1 service Ljava/lang/String;
1 7 2 list Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
4 6 3 prev Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
Signature: (Ljava/lang/String;)Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
MethodParameters:
Name Flags
service
public void register(java.lang.Module);
descriptor: (Ljava/lang/Module;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, 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 16
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
iconst_1
if_icmpne 10
7: aload 6
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 8: aload 0
aload 5
invokevirtual jdk.internal.module.ServicesCatalog.providers:(Ljava/lang/String;)Ljava/util/List;
new jdk.internal.module.ServicesCatalog$ServiceProvider
dup
aload 0
aload 1
aload 8
invokespecial jdk.internal.module.ServicesCatalog$ServiceProvider.<init>:(Ljdk/internal/module/ServicesCatalog;Ljava/lang/Module;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 9: goto 16
10: 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
StackMap stack:
new java.util.ArrayList
dup
iload 7
invokespecial java.util.ArrayList.<init>:(I)V
astore 8
start local 8 11: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 14
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 java.util.List top java.util.Iterator
StackMap stack:
12: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 13: aload 8
new jdk.internal.module.ServicesCatalog$ServiceProvider
dup
aload 0
aload 1
aload 9
invokespecial jdk.internal.module.ServicesCatalog$ServiceProvider.<init>:(Ljdk/internal/module/ServicesCatalog;Ljava/lang/Module;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 14: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
15: aload 0
aload 5
invokevirtual jdk.internal.module.ServicesCatalog.providers:(Ljava/lang/String;)Ljava/util/List;
aload 8
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 8 end local 7 end local 6 end local 5 end local 3 16: 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
17: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/internal/module/ServicesCatalog;
0 18 1 module Ljava/lang/Module;
1 18 2 descriptor Ljava/lang/module/ModuleDescriptor;
3 16 3 provides Ljava/lang/module/ModuleDescriptor$Provides;
4 16 5 service Ljava/lang/String;
5 16 6 providerNames Ljava/util/List<Ljava/lang/String;>;
6 16 7 count I
8 9 8 pn Ljava/lang/String;
11 16 8 list Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
13 14 9 pn Ljava/lang/String;
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=6, locals=5, 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;
invokevirtual jdk.internal.module.ServicesCatalog.providers:(Ljava/lang/String;)Ljava/util/List;
astore 4
start local 4 1: aload 4
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
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/ServicesCatalog;
0 3 1 module Ljava/lang/Module;
0 3 2 service Ljava/lang/Class<*>;
0 3 3 impl Ljava/lang/Class<*>;
1 3 4 list Ljava/util/List<Ljdk/internal/module/ServicesCatalog$ServiceProvider;>;
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.Collections.emptyList:()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
}
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