public final class jdk.tools.jlink.internal.PluginRepository
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: jdk.tools.jlink.internal.PluginRepository
  super_class: java.lang.Object
{
  private static final java.util.Map<java.lang.String, jdk.tools.jlink.plugin.Plugin> registeredPlugins;
    descriptor: Ljava/util/Map;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/tools/jlink/plugin/Plugin;>;

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 47
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putstatic jdk.tools.jlink.internal.PluginRepository.registeredPlugins:Ljava/util/Map;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.tools.jlink.internal.PluginRepository this
         0: .line 44
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 45
            return
        end local 0 // jdk.tools.jlink.internal.PluginRepository this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/tools/jlink/internal/PluginRepository;

  public static jdk.tools.jlink.plugin.Plugin getPlugin(java.lang.String, java.lang.ModuleLayer);
    descriptor: (Ljava/lang/String;Ljava/lang/ModuleLayer;)Ljdk/tools/jlink/plugin/Plugin;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // java.lang.String name
        start local 1 // java.lang.ModuleLayer pluginsLayer
         0: .line 59
            ldc Ljdk/tools/jlink/plugin/Plugin;
            aload 0 /* name */
            aload 1 /* pluginsLayer */
            invokestatic jdk.tools.jlink.internal.PluginRepository.getPlugin:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/ModuleLayer;)Ljdk/tools/jlink/plugin/Plugin;
            areturn
        end local 1 // java.lang.ModuleLayer pluginsLayer
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    1     0          name  Ljava/lang/String;
            0    1     1  pluginsLayer  Ljava/lang/ModuleLayer;
    MethodParameters:
              Name  Flags
      name          
      pluginsLayer  

  public static jdk.tools.jlink.plugin.Plugin newPlugin(java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.ModuleLayer);
    descriptor: (Ljava/util/Map;Ljava/lang/String;Ljava/lang/ModuleLayer;)Ljdk/tools/jlink/plugin/Plugin;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=5, args_size=3
        start local 0 // java.util.Map config
        start local 1 // java.lang.String name
        start local 2 // java.lang.ModuleLayer pluginsLayer
         0: .line 72
            aload 1 /* name */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 73
            aload 2 /* pluginsLayer */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 74
            aload 1 /* name */
            aload 2 /* pluginsLayer */
            invokestatic jdk.tools.jlink.internal.PluginRepository.getPlugin:(Ljava/lang/String;Ljava/lang/ModuleLayer;)Ljdk/tools/jlink/plugin/Plugin;
            astore 3 /* plugin */
        start local 3 // jdk.tools.jlink.plugin.Plugin plugin
         3: .line 75
            aload 3 /* plugin */
            ifnull 11
         4: .line 77
            aload 3 /* plugin */
            aload 0 /* config */
            invokeinterface jdk.tools.jlink.plugin.Plugin.configure:(Ljava/util/Map;)V
         5: .line 78
            goto 11
      StackMap locals: java.util.Map java.lang.String java.lang.ModuleLayer jdk.tools.jlink.plugin.Plugin
      StackMap stack: java.lang.IllegalArgumentException
         6: astore 4 /* e */
        start local 4 // java.lang.IllegalArgumentException e
         7: .line 79
            getstatic jdk.tools.jlink.internal.JlinkTask.DEBUG:Z
            ifeq 10
         8: .line 80
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Plugin "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 3 /* plugin */
            invokeinterface jdk.tools.jlink.plugin.Plugin.getName:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc " threw exception with config: "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* config */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         9: .line 81
            aload 4 /* e */
            invokevirtual java.lang.IllegalArgumentException.printStackTrace:()V
        10: .line 83
      StackMap locals: java.lang.IllegalArgumentException
      StackMap stack:
            aload 4 /* e */
            athrow
        end local 4 // java.lang.IllegalArgumentException e
        11: .line 86
      StackMap locals:
      StackMap stack:
            aload 3 /* plugin */
            areturn
        end local 3 // jdk.tools.jlink.plugin.Plugin plugin
        end local 2 // java.lang.ModuleLayer pluginsLayer
        end local 1 // java.lang.String name
        end local 0 // java.util.Map config
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   12     0        config  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
            0   12     1          name  Ljava/lang/String;
            0   12     2  pluginsLayer  Ljava/lang/ModuleLayer;
            3   12     3        plugin  Ljdk/tools/jlink/plugin/Plugin;
            7   11     4             e  Ljava/lang/IllegalArgumentException;
      Exception table:
        from    to  target  type
           4     5       6  Class java.lang.IllegalArgumentException
    Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/ModuleLayer;)Ljdk/tools/jlink/plugin/Plugin;
    MethodParameters:
              Name  Flags
      config        
      name          
      pluginsLayer  

  public static synchronized void registerPlugin(jdk.tools.jlink.plugin.Plugin);
    descriptor: (Ljdk/tools/jlink/plugin/Plugin;)V
    flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.tools.jlink.plugin.Plugin plugin
         0: .line 94
            aload 0 /* plugin */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 95
            getstatic jdk.tools.jlink.internal.PluginRepository.registeredPlugins:Ljava/util/Map;
            aload 0 /* plugin */
            invokeinterface jdk.tools.jlink.plugin.Plugin.getName:()Ljava/lang/String;
            aload 0 /* plugin */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 96
            return
        end local 0 // jdk.tools.jlink.plugin.Plugin plugin
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0  plugin  Ljdk/tools/jlink/plugin/Plugin;
    MethodParameters:
        Name  Flags
      plugin  

  public static synchronized void unregisterPlugin(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.String name
         0: .line 105
            aload 0 /* name */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 106
            getstatic jdk.tools.jlink.internal.PluginRepository.registeredPlugins:Ljava/util/Map;
            aload 0 /* name */
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 107
            return
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  name  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      name  

  public static java.util.List<jdk.tools.jlink.plugin.Plugin> getPlugins(java.lang.ModuleLayer);
    descriptor: (Ljava/lang/ModuleLayer;)Ljava/util/List;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.ModuleLayer pluginsLayer
         0: .line 110
            ldc Ljdk/tools/jlink/plugin/Plugin;
            aload 0 /* pluginsLayer */
            invokestatic jdk.tools.jlink.internal.PluginRepository.getPlugins:(Ljava/lang/Class;Ljava/lang/ModuleLayer;)Ljava/util/List;
            areturn
        end local 0 // java.lang.ModuleLayer pluginsLayer
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    1     0  pluginsLayer  Ljava/lang/ModuleLayer;
    Signature: (Ljava/lang/ModuleLayer;)Ljava/util/List<Ljdk/tools/jlink/plugin/Plugin;>;
    MethodParameters:
              Name  Flags
      pluginsLayer  

  private static <T extends jdk.tools.jlink.plugin.Plugin> T getPlugin(java.lang.Class<T>, java.lang.String, java.lang.ModuleLayer);
    descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/ModuleLayer;)Ljdk/tools/jlink/plugin/Plugin;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=7, args_size=3
        start local 0 // java.lang.Class clazz
        start local 1 // java.lang.String name
        start local 2 // java.lang.ModuleLayer pluginsLayer
         0: .line 115
            aload 1 /* name */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 116
            aload 2 /* pluginsLayer */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 118
            aconst_null
            astore 3 /* provider */
        start local 3 // jdk.tools.jlink.plugin.Plugin provider
         3: .line 119
            aload 0 /* clazz */
            aload 2 /* pluginsLayer */
            invokestatic jdk.tools.jlink.internal.PluginRepository.getPlugins:(Ljava/lang/Class;Ljava/lang/ModuleLayer;)Ljava/util/List;
            astore 4 /* javaProviders */
        start local 4 // java.util.List javaProviders
         4: .line 120
            aload 4 /* javaProviders */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 6
            goto 12
      StackMap locals: java.lang.Class java.lang.String java.lang.ModuleLayer jdk.tools.jlink.plugin.Plugin java.util.List top java.util.Iterator
      StackMap stack:
         5: aload 6
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast jdk.tools.jlink.plugin.Plugin
            astore 5 /* factory */
        start local 5 // jdk.tools.jlink.plugin.Plugin factory
         6: .line 121
            aload 5 /* factory */
            invokeinterface jdk.tools.jlink.plugin.Plugin.getName:()Ljava/lang/String;
            aload 1 /* name */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 12
         7: .line 122
            aload 3 /* provider */
            ifnull 11
         8: .line 123
            new jdk.tools.jlink.plugin.PluginException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Multiple plugin for the name "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         9: .line 124
            aload 1 /* name */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        10: .line 123
            invokespecial jdk.tools.jlink.plugin.PluginException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 126
      StackMap locals: java.lang.Class java.lang.String java.lang.ModuleLayer jdk.tools.jlink.plugin.Plugin java.util.List jdk.tools.jlink.plugin.Plugin java.util.Iterator
      StackMap stack:
            aload 5 /* factory */
            astore 3 /* provider */
        end local 5 // jdk.tools.jlink.plugin.Plugin factory
        12: .line 120
      StackMap locals: java.lang.Class java.lang.String java.lang.ModuleLayer jdk.tools.jlink.plugin.Plugin java.util.List top java.util.Iterator
      StackMap stack:
            aload 6
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 5
        13: .line 129
            aload 3 /* provider */
            areturn
        end local 4 // java.util.List javaProviders
        end local 3 // jdk.tools.jlink.plugin.Plugin provider
        end local 2 // java.lang.ModuleLayer pluginsLayer
        end local 1 // java.lang.String name
        end local 0 // java.lang.Class clazz
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   14     0          clazz  Ljava/lang/Class<TT;>;
            0   14     1           name  Ljava/lang/String;
            0   14     2   pluginsLayer  Ljava/lang/ModuleLayer;
            3   14     3       provider  TT;
            4   14     4  javaProviders  Ljava/util/List<TT;>;
            6   12     5        factory  TT;
    Signature: <T::Ljdk/tools/jlink/plugin/Plugin;>(Ljava/lang/Class<TT;>;Ljava/lang/String;Ljava/lang/ModuleLayer;)TT;
    MethodParameters:
              Name  Flags
      clazz         
      name          
      pluginsLayer  

  private static <T extends jdk.tools.jlink.plugin.Plugin> java.util.List<T> getPlugins(java.lang.Class<T>, java.lang.ModuleLayer);
    descriptor: (Ljava/lang/Class;Ljava/lang/ModuleLayer;)Ljava/util/List;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // java.lang.Class clazz
        start local 1 // java.lang.ModuleLayer pluginsLayer
         0: .line 139
            aload 1 /* pluginsLayer */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 140
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 2 /* factories */
        start local 2 // java.util.List factories
         2: .line 143
            aload 1 /* pluginsLayer */
            aload 0 /* clazz */
            invokestatic java.util.ServiceLoader.load:(Ljava/lang/ModuleLayer;Ljava/lang/Class;)Ljava/util/ServiceLoader;
            invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
         3: .line 142
            astore 3 /* providers */
        start local 3 // java.util.Iterator providers
         4: .line 144
            goto 6
         5: .line 145
      StackMap locals: java.util.List java.util.Iterator
      StackMap stack:
            aload 2 /* factories */
            aload 3 /* providers */
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast jdk.tools.jlink.plugin.Plugin
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
         6: .line 144
      StackMap locals:
      StackMap stack:
            aload 3 /* providers */
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 5
         7: .line 147
            getstatic jdk.tools.jlink.internal.PluginRepository.registeredPlugins:Ljava/util/Map;
            invokeinterface java.util.Map.values:()Ljava/util/Collection;
            invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
            aload 0 /* clazz */
            aload 2 /* factories */
            invokedynamic accept(Ljava/lang/Class;Ljava/util/List;)Ljava/util/function/Consumer;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)V
                  jdk/tools/jlink/internal/PluginRepository.lambda$0(Ljava/lang/Class;Ljava/util/List;Ljdk/tools/jlink/plugin/Plugin;)V (6)
                  (Ljdk/tools/jlink/plugin/Plugin;)V
            invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
         8: .line 154
            aload 2 /* factories */
         9: areturn
        end local 3 // java.util.Iterator providers
        10: .line 155
      StackMap locals: java.lang.Class java.lang.ModuleLayer java.util.List
      StackMap stack: java.lang.Exception
            astore 3 /* ex */
        start local 3 // java.lang.Exception ex
        11: .line 156
            new jdk.tools.jlink.plugin.PluginException
            dup
            aload 3 /* ex */
            invokespecial jdk.tools.jlink.plugin.PluginException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 3 // java.lang.Exception ex
        end local 2 // java.util.List factories
        end local 1 // java.lang.ModuleLayer pluginsLayer
        end local 0 // java.lang.Class clazz
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   12     0         clazz  Ljava/lang/Class<TT;>;
            0   12     1  pluginsLayer  Ljava/lang/ModuleLayer;
            2   12     2     factories  Ljava/util/List<TT;>;
            4   10     3     providers  Ljava/util/Iterator<TT;>;
           11   12     3            ex  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           2     9      10  Class java.lang.Exception
    Signature: <T::Ljdk/tools/jlink/plugin/Plugin;>(Ljava/lang/Class<TT;>;Ljava/lang/ModuleLayer;)Ljava/util/List<TT;>;
    MethodParameters:
              Name  Flags
      clazz         
      pluginsLayer  

  private static void lambda$0(java.lang.Class, java.util.List, jdk.tools.jlink.plugin.Plugin);
    descriptor: (Ljava/lang/Class;Ljava/util/List;Ljdk/tools/jlink/plugin/Plugin;)V
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=2, locals=4, args_size=3
        start local 2 // jdk.tools.jlink.plugin.Plugin fact
         0: .line 148
            aload 0
            aload 2 /* fact */
            invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
            ifeq 3
         1: .line 150
            aload 2 /* fact */
            astore 3 /* trans */
        start local 3 // jdk.tools.jlink.plugin.Plugin trans
         2: .line 151
            aload 1
            aload 3 /* trans */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 3 // jdk.tools.jlink.plugin.Plugin trans
         3: .line 153
      StackMap locals:
      StackMap stack:
            return
        end local 2 // jdk.tools.jlink.plugin.Plugin fact
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     2   fact  Ljdk/tools/jlink/plugin/Plugin;
            2    3     3  trans  TT;
}
SourceFile: "PluginRepository.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles