public final class sun.misc.Service<S>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.misc.Service
super_class: java.lang.Object
{
private static final java.lang.String prefix;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "META-INF/services/"
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Service<TS;>;
private static void fail(java.lang.Class<?>, java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new sun.misc.ServiceConfigurationError
dup
new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.misc.ServiceConfigurationError.<init>:(Ljava/lang/String;)V
1: astore 3
start local 3 2: aload 3
aload 2
invokevirtual sun.misc.ServiceConfigurationError.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
3: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 service Ljava/lang/Class<*>;
0 4 1 msg Ljava/lang/String;
0 4 2 cause Ljava/lang/Throwable;
2 4 3 sce Lsun/misc/ServiceConfigurationError;
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
service
msg
cause
private static void fail(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new sun.misc.ServiceConfigurationError
dup
new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.misc.ServiceConfigurationError.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 service Ljava/lang/Class<*>;
0 1 1 msg Ljava/lang/String;
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)V
MethodParameters:
Name Flags
service
msg
private static void fail(java.lang.Class<?>, java.net.URL, int, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/net/URL;ILjava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 service Ljava/lang/Class<*>;
0 2 1 u Ljava/net/URL;
0 2 2 line I
0 2 3 msg Ljava/lang/String;
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: (Ljava/lang/Class<*>;Ljava/net/URL;ILjava/lang/String;)V
MethodParameters:
Name Flags
service
u
line
msg
private static int parseLine(java.lang.Class<?>, java.net.URL, java.io.BufferedReader, int, java.util.List<java.lang.String>, java.util.Set<java.lang.String>);
descriptor: (Ljava/lang/Class;Ljava/net/URL;Ljava/io/BufferedReader;ILjava/util/List;Ljava/util/Set;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 6
start local 6 1: aload 6
ifnonnull 3
2: iconst_m1
ireturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 6
bipush 35
invokevirtual java.lang.String.indexOf:(I)I
istore 7
start local 7 4: iload 7
iflt 5
aload 6
iconst_0
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
5: StackMap locals: int
StackMap stack:
aload 6
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 6
6: aload 6
invokevirtual java.lang.String.length:()I
istore 8
start local 8 7: iload 8
ifeq 23
8: aload 6
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
ifge 9
aload 6
bipush 9
invokevirtual java.lang.String.indexOf:(I)I
iflt 10
9: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 3
ldc "Illegal configuration-file syntax"
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/net/URL;ILjava/lang/String;)V
10: StackMap locals:
StackMap stack:
aload 6
iconst_0
invokevirtual java.lang.String.codePointAt:(I)I
istore 9
start local 9 11: iload 9
invokestatic java.lang.Character.isJavaIdentifierStart:(I)Z
ifne 13
12: aload 0
aload 1
iload 3
new java.lang.StringBuilder
dup
ldc "Illegal provider-class name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/net/URL;ILjava/lang/String;)V
13: StackMap locals: int
StackMap stack:
iload 9
invokestatic java.lang.Character.charCount:(I)I
istore 10
start local 10 14: goto 19
15: StackMap locals: int
StackMap stack:
aload 6
iload 10
invokevirtual java.lang.String.codePointAt:(I)I
istore 9
16: iload 9
invokestatic java.lang.Character.isJavaIdentifierPart:(I)Z
ifne 18
iload 9
bipush 46
if_icmpeq 18
17: aload 0
aload 1
iload 3
new java.lang.StringBuilder
dup
ldc "Illegal provider-class name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/net/URL;ILjava/lang/String;)V
18: StackMap locals:
StackMap stack:
iload 10
iload 9
invokestatic java.lang.Character.charCount:(I)I
iadd
istore 10
StackMap locals:
StackMap stack:
19: iload 10
iload 8
if_icmplt 15
end local 10 20: aload 5
aload 6
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 23
21: aload 4
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
22: aload 5
aload 6
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 9 23: StackMap locals:
StackMap stack:
iload 3
iconst_1
iadd
ireturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 service Ljava/lang/Class<*>;
0 24 1 u Ljava/net/URL;
0 24 2 r Ljava/io/BufferedReader;
0 24 3 lc I
0 24 4 names Ljava/util/List<Ljava/lang/String;>;
0 24 5 returned Ljava/util/Set<Ljava/lang/String;>;
1 24 6 ln Ljava/lang/String;
4 24 7 ci I
7 24 8 n I
11 23 9 cp I
14 20 10 i I
Exceptions:
throws java.io.IOException, sun.misc.ServiceConfigurationError
Signature: (Ljava/lang/Class<*>;Ljava/net/URL;Ljava/io/BufferedReader;ILjava/util/List<Ljava/lang/String;>;Ljava/util/Set<Ljava/lang/String;>;)I
MethodParameters:
Name Flags
service
u
r
lc
names
returned
private static java.util.Iterator<java.lang.String> parse(java.lang.Class<?>, java.net.URL, java.util.Set<java.lang.String>);
descriptor: (Ljava/lang/Class;Ljava/net/URL;Ljava/util/Set;)Ljava/util/Iterator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 3: aload 1
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 3
4: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 3
ldc "utf-8"
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
5: iconst_1
istore 6
start local 6 6: StackMap locals: java.lang.Class java.net.URL java.util.Set java.io.InputStream java.io.BufferedReader java.util.ArrayList int
StackMap stack:
aload 0
aload 1
aload 4
iload 6
aload 5
aload 2
invokestatic sun.misc.Service.parseLine:(Ljava/lang/Class;Ljava/net/URL;Ljava/io/BufferedReader;ILjava/util/List;Ljava/util/Set;)I
dup
istore 6
ifge 6
end local 6 7: goto 23
StackMap locals: java.lang.Class java.net.URL java.util.Set java.io.InputStream java.io.BufferedReader java.util.ArrayList
StackMap stack: java.io.IOException
8: astore 6
start local 6 9: aload 0
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
end local 6 10: aload 4
ifnull 11
aload 4
invokevirtual java.io.BufferedReader.close:()V
11: StackMap locals:
StackMap stack:
aload 3
ifnull 28
aload 3
invokevirtual java.io.InputStream.close:()V
12: goto 28
StackMap locals:
StackMap stack: java.io.IOException
13: astore 8
start local 8 14: aload 0
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
end local 8 15: goto 28
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
17: aload 4
ifnull 18
aload 4
invokevirtual java.io.BufferedReader.close:()V
18: StackMap locals: java.lang.Class java.net.URL java.util.Set java.io.InputStream java.io.BufferedReader java.util.ArrayList top java.lang.Throwable
StackMap stack:
aload 3
ifnull 22
aload 3
invokevirtual java.io.InputStream.close:()V
19: goto 22
StackMap locals:
StackMap stack: java.io.IOException
20: astore 8
start local 8 21: aload 0
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
end local 8 22: StackMap locals:
StackMap stack:
aload 7
athrow
23: StackMap locals: java.lang.Class java.net.URL java.util.Set java.io.InputStream java.io.BufferedReader java.util.ArrayList
StackMap stack:
aload 4
ifnull 24
aload 4
invokevirtual java.io.BufferedReader.close:()V
24: StackMap locals:
StackMap stack:
aload 3
ifnull 28
aload 3
invokevirtual java.io.InputStream.close:()V
25: goto 28
StackMap locals:
StackMap stack: java.io.IOException
26: astore 8
start local 8 27: aload 0
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
end local 8 28: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 service Ljava/lang/Class<*>;
0 29 1 u Ljava/net/URL;
0 29 2 returned Ljava/util/Set<Ljava/lang/String;>;
1 29 3 in Ljava/io/InputStream;
2 29 4 r Ljava/io/BufferedReader;
3 29 5 names Ljava/util/ArrayList<Ljava/lang/String;>;
6 7 6 lc I
9 10 6 x Ljava/io/IOException;
14 15 8 y Ljava/io/IOException;
21 22 8 y Ljava/io/IOException;
27 28 8 y Ljava/io/IOException;
Exception table:
from to target type
3 7 8 Class java.io.IOException
10 12 13 Class java.io.IOException
3 10 16 any
17 19 20 Class java.io.IOException
23 25 26 Class java.io.IOException
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: (Ljava/lang/Class<*>;Ljava/net/URL;Ljava/util/Set<Ljava/lang/String;>;)Ljava/util/Iterator<Ljava/lang/String;>;
MethodParameters:
Name Flags
service
u
returned
public static <S> java.util.Iterator<S> providers(java.lang.Class<S>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new sun.misc.Service$LazyIterator
dup
aload 0
aload 1
invokespecial sun.misc.Service$LazyIterator.<init>:(Ljava/lang/Class;Ljava/lang/ClassLoader;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 service Ljava/lang/Class<TS;>;
0 1 1 loader Ljava/lang/ClassLoader;
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;Ljava/lang/ClassLoader;)Ljava/util/Iterator<TS;>;
MethodParameters:
Name Flags
service
loader
public static <S> java.util.Iterator<S> providers(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 1: aload 0
aload 1
invokestatic sun.misc.Service.providers:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/Iterator;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 service Ljava/lang/Class<TS;>;
1 2 1 cl Ljava/lang/ClassLoader;
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;)Ljava/util/Iterator<TS;>;
MethodParameters:
Name Flags
service
public static <S> java.util.Iterator<S> installedProviders(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: goto 5
3: StackMap locals: java.lang.ClassLoader java.lang.ClassLoader
StackMap stack:
aload 1
astore 2
4: aload 1
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
astore 1
5: StackMap locals:
StackMap stack:
aload 1
ifnonnull 3
6: aload 0
aload 2
invokestatic sun.misc.Service.providers:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/Iterator;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 service Ljava/lang/Class<TS;>;
1 7 1 cl Ljava/lang/ClassLoader;
2 7 2 prev Ljava/lang/ClassLoader;
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;)Ljava/util/Iterator<TS;>;
MethodParameters:
Name Flags
service
}
Signature: <S:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "Service.java"
NestMembers:
sun.misc.Service$LazyIterator
InnerClasses:
private LazyIterator = sun.misc.Service$LazyIterator of sun.misc.Service