class org.jruby.embed.jsr223.ServiceFinder<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.jruby.embed.jsr223.ServiceFinder
  super_class: java.lang.Object
{
  private final java.util.Set<T> services;
    descriptor: Ljava/util/Set;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Set<TT;>;

  void <init>(java.lang.String, java.lang.ClassLoader);
    descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)V
    flags: (0x0000) 
    Code:
      stack=4, locals=5, args_size=3
        start local 0 // org.jruby.embed.jsr223.ServiceFinder this
        start local 1 // java.lang.String serviceName
        start local 2 // java.lang.ClassLoader loader
         0: .line 53
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 56
            aload 2 /* loader */
            ifnonnull 5
         2: .line 57
            invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
            astore 2 /* loader */
         3: .line 58
            aload 1 /* serviceName */
            invokestatic java.lang.ClassLoader.getSystemResources:(Ljava/lang/String;)Ljava/util/Enumeration;
            astore 3 /* urls */
        start local 3 // java.util.Enumeration urls
         4: .line 59
            goto 6
        end local 3 // java.util.Enumeration urls
         5: .line 60
      StackMap locals: org.jruby.embed.jsr223.ServiceFinder java.lang.String java.lang.ClassLoader
      StackMap stack:
            aload 2 /* loader */
            aload 1 /* serviceName */
            invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
            astore 3 /* urls */
        start local 3 // java.util.Enumeration urls
         6: .line 63
      StackMap locals: java.util.Enumeration
      StackMap stack:
            aload 3 /* urls */
            invokestatic org.jruby.embed.jsr223.ServiceFinder.readClassNames:(Ljava/util/Enumeration;)Ljava/util/List;
            astore 4 /* classNames */
        start local 4 // java.util.List classNames
         7: .line 64
            aload 0 /* this */
            aload 0 /* this */
            aload 4 /* classNames */
            aload 2 /* loader */
            invokevirtual org.jruby.embed.jsr223.ServiceFinder.instantiateClasses:(Ljava/util/Collection;Ljava/lang/ClassLoader;)Ljava/util/Set;
            putfield org.jruby.embed.jsr223.ServiceFinder.services:Ljava/util/Set;
         8: .line 65
            return
        end local 4 // java.util.List classNames
        end local 3 // java.util.Enumeration urls
        end local 2 // java.lang.ClassLoader loader
        end local 1 // java.lang.String serviceName
        end local 0 // org.jruby.embed.jsr223.ServiceFinder this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    9     0         this  Lorg/jruby/embed/jsr223/ServiceFinder<TT;>;
            0    9     1  serviceName  Ljava/lang/String;
            0    9     2       loader  Ljava/lang/ClassLoader;
            4    5     3         urls  Ljava/util/Enumeration<Ljava/net/URL;>;
            6    9     3         urls  Ljava/util/Enumeration<Ljava/net/URL;>;
            7    9     4   classNames  Ljava/util/List<Ljava/lang/String;>;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
             Name  Flags
      serviceName  final
      loader       

  java.util.Collection<T> getServices();
    descriptor: ()Ljava/util/Collection;
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.embed.jsr223.ServiceFinder this
         0: .line 67
            aload 0 /* this */
            getfield org.jruby.embed.jsr223.ServiceFinder.services:Ljava/util/Set;
            areturn
        end local 0 // org.jruby.embed.jsr223.ServiceFinder this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/embed/jsr223/ServiceFinder<TT;>;
    Signature: ()Ljava/util/Collection<TT;>;

  private static java.util.List<java.lang.String> readClassNames(java.util.Enumeration<java.net.URL>);
    descriptor: (Ljava/util/Enumeration;)Ljava/util/List;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=6, locals=6, args_size=1
        start local 0 // java.util.Enumeration urls
         0: .line 70
            ldc "file.encoding"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 1 /* encoding */
        start local 1 // java.lang.String encoding
         1: .line 71
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 2 /* names */
        start local 2 // java.util.ArrayList names
         2: .line 72
            goto 15
         3: .line 73
      StackMap locals: java.lang.String java.util.ArrayList
      StackMap stack:
            aconst_null
            astore 3 /* url */
        start local 3 // java.net.URL url
         4: .line 75
            aload 0 /* urls */
            invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
            checkcast java.net.URL
            astore 3 /* url */
         5: .line 77
            new java.io.BufferedReader
            dup
            new java.io.InputStreamReader
            dup
            aload 3 /* url */
            invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
            aload 1 /* encoding */
            invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
            invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
         6: .line 76
            astore 4 /* reader */
        start local 4 // java.io.BufferedReader reader
         7: .line 79
            goto 10
        start local 5 // java.lang.String line
         8: .line 80
      StackMap locals: java.net.URL java.io.BufferedReader java.lang.String
      StackMap stack:
            aload 5 /* line */
            invokestatic org.jruby.embed.jsr223.ServiceFinder.deleteComments:(Ljava/lang/String;)Ljava/lang/String;
            dup
            astore 5 /* line */
            ifnull 10
         9: .line 81
            aload 2 /* names */
            aload 5 /* line */
            invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
            pop
        end local 5 // java.lang.String line
        10: .line 79
      StackMap locals:
      StackMap stack:
            aload 4 /* reader */
            invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
            dup
            astore 5 /* line */
        start local 5 // java.lang.String line
        11: ifnonnull 8
        end local 5 // java.lang.String line
        end local 4 // java.io.BufferedReader reader
        12: .line 84
            goto 15
        13: .line 85
      StackMap locals: java.util.Enumeration java.lang.String java.util.ArrayList java.net.URL
      StackMap stack: java.io.IOException
            pop
        14: .line 86
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Failed to get a class name from "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 3 /* url */
            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
        end local 3 // java.net.URL url
        15: .line 72
      StackMap locals:
      StackMap stack:
            aload 0 /* urls */
            invokeinterface java.util.Enumeration.hasMoreElements:()Z
            ifne 3
        16: .line 90
            aload 2 /* names */
            areturn
        end local 2 // java.util.ArrayList names
        end local 1 // java.lang.String encoding
        end local 0 // java.util.Enumeration urls
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   17     0      urls  Ljava/util/Enumeration<Ljava/net/URL;>;
            1   17     1  encoding  Ljava/lang/String;
            2   17     2     names  Ljava/util/ArrayList<Ljava/lang/String;>;
            4   15     3       url  Ljava/net/URL;
            7   12     4    reader  Ljava/io/BufferedReader;
            8   10     5      line  Ljava/lang/String;
           11   12     5      line  Ljava/lang/String;
      Exception table:
        from    to  target  type
           4    12      13  Class java.io.IOException
    Signature: (Ljava/util/Enumeration<Ljava/net/URL;>;)Ljava/util/List<Ljava/lang/String;>;
    MethodParameters:
      Name  Flags
      urls  

  private static java.lang.String deleteComments(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=2, args_size=1
        start local 0 // java.lang.String line
         0: .line 94
            aload 0 /* line */
            ldc "#"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 1
            aconst_null
            areturn
         1: .line 95
      StackMap locals:
      StackMap stack:
            aload 0 /* line */
            invokevirtual java.lang.String.length:()I
            iconst_1
            if_icmpge 2
            aconst_null
            areturn
         2: .line 96
      StackMap locals:
      StackMap stack:
            new java.util.StringTokenizer
            dup
            aload 0 /* line */
            ldc "#"
            invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
            astore 1 /* st */
        start local 1 // java.util.StringTokenizer st
         3: .line 97
            aload 1 /* st */
            invokevirtual java.util.StringTokenizer.nextElement:()Ljava/lang/Object;
            checkcast java.lang.String
            invokevirtual java.lang.String.trim:()Ljava/lang/String;
            areturn
        end local 1 // java.util.StringTokenizer st
        end local 0 // java.lang.String line
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  line  Ljava/lang/String;
            3    4     1    st  Ljava/util/StringTokenizer;
    MethodParameters:
      Name  Flags
      line  final

  private java.util.Set<T> instantiateClasses(java.util.Collection<java.lang.String>, java.lang.ClassLoader);
    descriptor: (Ljava/util/Collection;Ljava/lang/ClassLoader;)Ljava/util/Set;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=7, args_size=3
        start local 0 // org.jruby.embed.jsr223.ServiceFinder this
        start local 1 // java.util.Collection names
        start local 2 // java.lang.ClassLoader loader
         0: .line 102
            new java.util.HashSet
            dup
            aload 1 /* names */
            invokeinterface java.util.Collection.size:()I
            invokespecial java.util.HashSet.<init>:(I)V
            astore 3 /* instances */
        start local 3 // java.util.HashSet instances
         1: .line 103
            aload 1 /* names */
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            astore 5
            goto 17
      StackMap locals: org.jruby.embed.jsr223.ServiceFinder java.util.Collection java.lang.ClassLoader java.util.HashSet top java.util.Iterator
      StackMap stack:
         2: aload 5
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.String
            astore 4 /* name */
        start local 4 // java.lang.String name
         3: .line 106
            aload 4 /* name */
            iconst_1
            aload 2 /* loader */
            invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
            astore 6 /* clazz */
        start local 6 // java.lang.Class clazz
         4: .line 107
            aload 3 /* instances */
            aload 6 /* clazz */
            invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
            invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
            pop
        end local 6 // java.lang.Class clazz
         5: .line 108
            goto 17
         6: .line 109
      StackMap locals: org.jruby.embed.jsr223.ServiceFinder java.util.Collection java.lang.ClassLoader java.util.HashSet java.lang.String java.util.Iterator
      StackMap stack: java.lang.ClassNotFoundException
            pop
         7: .line 110
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            aload 4 /* name */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc " was not found"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         8: .line 111
            goto 17
         9: .line 113
      StackMap locals:
      StackMap stack: java.lang.InstantiationException
            pop
        10: .line 114
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            aload 4 /* name */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc " was not instantiated"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        11: .line 115
            goto 17
        12: .line 117
      StackMap locals:
      StackMap stack: java.lang.IllegalAccessException
            pop
        13: .line 118
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            aload 4 /* name */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc " committed illegal access"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        14: .line 119
            goto 17
        15: .line 121
      StackMap locals:
      StackMap stack: java.lang.Throwable
            pop
        16: .line 122
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "failed to instantiate "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 4 /* name */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        end local 4 // java.lang.String name
        17: .line 103
      StackMap locals: org.jruby.embed.jsr223.ServiceFinder java.util.Collection java.lang.ClassLoader java.util.HashSet top java.util.Iterator
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
        18: .line 126
            aload 3 /* instances */
            areturn
        end local 3 // java.util.HashSet instances
        end local 2 // java.lang.ClassLoader loader
        end local 1 // java.util.Collection names
        end local 0 // org.jruby.embed.jsr223.ServiceFinder this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   19     0       this  Lorg/jruby/embed/jsr223/ServiceFinder<TT;>;
            0   19     1      names  Ljava/util/Collection<Ljava/lang/String;>;
            0   19     2     loader  Ljava/lang/ClassLoader;
            1   19     3  instances  Ljava/util/HashSet<TT;>;
            3   17     4       name  Ljava/lang/String;
            4    5     6      clazz  Ljava/lang/Class<TT;>;
      Exception table:
        from    to  target  type
           3     5       6  Class java.lang.ClassNotFoundException
           3     5       9  Class java.lang.InstantiationException
           3     5      12  Class java.lang.IllegalAccessException
           3     5      15  Class java.lang.Throwable
    Signature: (Ljava/util/Collection<Ljava/lang/String;>;Ljava/lang/ClassLoader;)Ljava/util/Set<TT;>;
    MethodParameters:
        Name  Flags
      names   final
      loader  final
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ServiceFinder.java"