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: .line 176
            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 // jdk.internal.module.ServicesCatalog this
         0: .line 86
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 84
            aload 0 /* this */
            new java.util.concurrent.ConcurrentHashMap
            dup
            invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
            putfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
         2: .line 86
            return
        end local 0 // jdk.internal.module.ServicesCatalog this
      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: .line 93
            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 // jdk.internal.module.ServicesCatalog this
        start local 1 // java.lang.String service
         0: .line 102
            aload 0 /* this */
            getfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
            aload 1 /* service */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.List
            astore 2 /* list */
        start local 2 // java.util.List list
         1: .line 103
            aload 2 /* list */
            ifnonnull 6
         2: .line 104
            new java.util.concurrent.CopyOnWriteArrayList
            dup
            invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
            astore 2 /* list */
         3: .line 105
            aload 0 /* this */
            getfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
            aload 1 /* service */
            aload 2 /* list */
            invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.List
            astore 3 /* prev */
        start local 3 // java.util.List prev
         4: .line 106
            aload 3 /* prev */
            ifnull 6
         5: .line 107
            aload 3 /* prev */
            astore 2 /* list */
        end local 3 // java.util.List prev
         6: .line 109
      StackMap locals: java.util.List
      StackMap stack:
            aload 2 /* list */
            areturn
        end local 2 // java.util.List list
        end local 1 // java.lang.String service
        end local 0 // jdk.internal.module.ServicesCatalog this
      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 // jdk.internal.module.ServicesCatalog this
        start local 1 // java.lang.Module module
         0: .line 116
            aload 1 /* module */
            invokevirtual java.lang.Module.getDescriptor:()Ljava/lang/module/ModuleDescriptor;
            astore 2 /* descriptor */
        start local 2 // java.lang.module.ModuleDescriptor descriptor
         1: .line 117
            aload 2 /* descriptor */
            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 /* provides */
        start local 3 // java.lang.module.ModuleDescriptor$Provides provides
         3: .line 118
            aload 3 /* provides */
            invokevirtual java.lang.module.ModuleDescriptor$Provides.service:()Ljava/lang/String;
            astore 5 /* service */
        start local 5 // java.lang.String service
         4: .line 119
            aload 3 /* provides */
            invokevirtual java.lang.module.ModuleDescriptor$Provides.providers:()Ljava/util/List;
            astore 6 /* providerNames */
        start local 6 // java.util.List providerNames
         5: .line 120
            aload 6 /* providerNames */
            invokeinterface java.util.List.size:()I
            istore 7 /* count */
        start local 7 // int count
         6: .line 121
            iload 7 /* count */
            iconst_1
            if_icmpne 10
         7: .line 122
            aload 6 /* providerNames */
            iconst_0
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.String
            astore 8 /* pn */
        start local 8 // java.lang.String pn
         8: .line 123
            aload 0 /* this */
            aload 5 /* service */
            invokevirtual jdk.internal.module.ServicesCatalog.providers:(Ljava/lang/String;)Ljava/util/List;
            new jdk.internal.module.ServicesCatalog$ServiceProvider
            dup
            aload 0 /* this */
            aload 1 /* module */
            aload 8 /* pn */
            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 // java.lang.String pn
         9: .line 124
            goto 16
        10: .line 125
      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 /* count */
            invokespecial java.util.ArrayList.<init>:(I)V
            astore 8 /* list */
        start local 8 // java.util.List list
        11: .line 126
            aload 6 /* providerNames */
            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 /* pn */
        start local 9 // java.lang.String pn
        13: .line 127
            aload 8 /* list */
            new jdk.internal.module.ServicesCatalog$ServiceProvider
            dup
            aload 0 /* this */
            aload 1 /* module */
            aload 9 /* pn */
            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 // java.lang.String pn
        14: .line 126
      StackMap locals:
      StackMap stack:
            aload 10
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 12
        15: .line 129
            aload 0 /* this */
            aload 5 /* service */
            invokevirtual jdk.internal.module.ServicesCatalog.providers:(Ljava/lang/String;)Ljava/util/List;
            aload 8 /* list */
            invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
            pop
        end local 8 // java.util.List list
        end local 7 // int count
        end local 6 // java.util.List providerNames
        end local 5 // java.lang.String service
        end local 3 // java.lang.module.ModuleDescriptor$Provides provides
        16: .line 117
      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: .line 132
            return
        end local 2 // java.lang.module.ModuleDescriptor descriptor
        end local 1 // java.lang.Module module
        end local 0 // jdk.internal.module.ServicesCatalog this
      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 // jdk.internal.module.ServicesCatalog this
        start local 1 // java.lang.Module module
        start local 2 // java.lang.Class service
        start local 3 // java.lang.Class impl
         0: .line 140
            aload 0 /* this */
            aload 2 /* service */
            invokevirtual java.lang.Class.getName:()Ljava/lang/String;
            invokevirtual jdk.internal.module.ServicesCatalog.providers:(Ljava/lang/String;)Ljava/util/List;
            astore 4 /* list */
        start local 4 // java.util.List list
         1: .line 141
            aload 4 /* list */
            new jdk.internal.module.ServicesCatalog$ServiceProvider
            dup
            aload 0 /* this */
            aload 1 /* module */
            aload 3 /* impl */
            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: .line 142
            return
        end local 4 // java.util.List list
        end local 3 // java.lang.Class impl
        end local 2 // java.lang.Class service
        end local 1 // java.lang.Module module
        end local 0 // jdk.internal.module.ServicesCatalog this
      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 // jdk.internal.module.ServicesCatalog this
        start local 1 // java.lang.String service
         0: .line 149
            aload 0 /* this */
            getfield jdk.internal.module.ServicesCatalog.map:Ljava/util/Map;
            aload 1 /* service */
            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 // java.lang.String service
        end local 0 // jdk.internal.module.ServicesCatalog this
      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 // java.lang.ClassLoader loader
         0: .line 157
            getstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
            aload 0 /* loader */
            invokevirtual jdk.internal.loader.ClassLoaderValue.get:(Ljava/lang/ClassLoader;)Ljava/lang/Object;
            checkcast jdk.internal.module.ServicesCatalog
            areturn
        end local 0 // java.lang.ClassLoader loader
      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 // java.lang.ClassLoader loader
         0: .line 166
            getstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
            aload 0 /* loader */
            invokevirtual jdk.internal.loader.ClassLoaderValue.get:(Ljava/lang/ClassLoader;)Ljava/lang/Object;
            checkcast jdk.internal.module.ServicesCatalog
            astore 1 /* catalog */
        start local 1 // jdk.internal.module.ServicesCatalog catalog
         1: .line 167
            aload 1 /* catalog */
            ifnonnull 5
         2: .line 168
            invokestatic jdk.internal.module.ServicesCatalog.create:()Ljdk/internal/module/ServicesCatalog;
            astore 1 /* catalog */
         3: .line 169
            getstatic jdk.internal.module.ServicesCatalog.CLV:Ljdk/internal/loader/ClassLoaderValue;
            aload 0 /* loader */
            aload 1 /* catalog */
            invokevirtual jdk.internal.loader.ClassLoaderValue.putIfAbsent:(Ljava/lang/ClassLoader;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast jdk.internal.module.ServicesCatalog
            astore 2 /* previous */
        start local 2 // jdk.internal.module.ServicesCatalog previous
         4: .line 170
            aload 2 /* previous */
            ifnull 5
            aload 2 /* previous */
            astore 1 /* catalog */
        end local 2 // jdk.internal.module.ServicesCatalog previous
         5: .line 172
      StackMap locals: jdk.internal.module.ServicesCatalog
      StackMap stack:
            aload 1 /* catalog */
            areturn
        end local 1 // jdk.internal.module.ServicesCatalog catalog
        end local 0 // java.lang.ClassLoader loader
      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