public final class java.util.ServiceLoader<S> implements java.lang.Iterable<S>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.util.ServiceLoader
super_class: java.lang.Object
{
private final java.lang.Class<S> service;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TS;>;
private final java.lang.String serviceName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ModuleLayer layer;
descriptor: Ljava/lang/ModuleLayer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ClassLoader loader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.security.AccessControlContext acc;
descriptor: Ljava/security/AccessControlContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Iterator<java.util.ServiceLoader$Provider<S>> lookupIterator1;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<Ljava/util/ServiceLoader$Provider<TS;>;>;
private final java.util.List<S> instantiatedProviders;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<TS;>;
private java.util.Iterator<java.util.ServiceLoader$Provider<S>> lookupIterator2;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<Ljava/util/ServiceLoader$Provider<TS;>;>;
private final java.util.List<java.util.ServiceLoader$Provider<S>> loadedProviders;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/util/ServiceLoader$Provider<TS;>;>;
private boolean loadedAllProviders;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int reloadCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static jdk.internal.access.JavaLangAccess LANG_ACCESS;
descriptor: Ljdk/internal/access/JavaLangAccess;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljava/util/ServiceLoader;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic java.util.ServiceLoader.$assertionsDisabled:Z
3: invokestatic jdk.internal.access.SharedSecrets.getJavaLangAccess:()Ljdk/internal/access/JavaLangAccess;
putstatic java.util.ServiceLoader.LANG_ACCESS:Ljdk/internal/access/JavaLangAccess;
4: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.Class<?>, java.lang.ModuleLayer, java.lang.Class<S>);
descriptor: (Ljava/lang/Class;Ljava/lang/ModuleLayer;Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield java.util.ServiceLoader.instantiatedProviders:Ljava/util/List;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield java.util.ServiceLoader.loadedProviders:Ljava/util/List;
3: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 1
aload 3
invokestatic java.util.ServiceLoader.checkCaller:(Ljava/lang/Class;Ljava/lang/Class;)V
7: aload 0
aload 3
putfield java.util.ServiceLoader.service:Ljava/lang/Class;
8: aload 0
aload 3
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
putfield java.util.ServiceLoader.serviceName:Ljava/lang/String;
9: aload 0
aload 2
putfield java.util.ServiceLoader.layer:Ljava/lang/ModuleLayer;
10: aload 0
aconst_null
putfield java.util.ServiceLoader.loader:Ljava/lang/ClassLoader;
11: aload 0
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 13
12: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
goto 14
13: StackMap locals: java.util.ServiceLoader java.lang.Class java.lang.ModuleLayer java.lang.Class
StackMap stack: java.util.ServiceLoader
aconst_null
14: StackMap locals: java.util.ServiceLoader java.lang.Class java.lang.ModuleLayer java.lang.Class
StackMap stack: java.util.ServiceLoader java.security.AccessControlContext
putfield java.util.ServiceLoader.acc:Ljava/security/AccessControlContext;
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/util/ServiceLoader<TS;>;
0 16 1 caller Ljava/lang/Class<*>;
0 16 2 layer Ljava/lang/ModuleLayer;
0 16 3 svc Ljava/lang/Class<TS;>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/ModuleLayer;Ljava/lang/Class<TS;>;)V
MethodParameters:
Name Flags
caller
layer
svc
private void <init>(java.lang.Class<?>, java.lang.Class<S>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/ClassLoader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield java.util.ServiceLoader.instantiatedProviders:Ljava/util/List;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield java.util.ServiceLoader.loadedProviders:Ljava/util/List;
3: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: invokestatic jdk.internal.misc.VM.isBooted:()Z
ifeq 9
5: aload 1
aload 2
invokestatic java.util.ServiceLoader.checkCaller:(Ljava/lang/Class;Ljava/lang/Class;)V
6: aload 3
ifnonnull 15
7: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
astore 3
8: goto 15
9: StackMap locals: java.util.ServiceLoader java.lang.Class java.lang.Class java.lang.ClassLoader
StackMap stack:
aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 4
start local 4 10: ldc Ljava/lang/Object;
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 5
start local 5 11: aload 2
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 6
start local 6 12: aload 4
aload 5
if_acmpne 13
aload 6
aload 5
if_acmpeq 14
13: StackMap locals: java.lang.Module java.lang.Module java.lang.Module
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc "not accessible to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " during VM init"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
14: StackMap locals:
StackMap stack:
aconst_null
astore 3
end local 6 end local 5 end local 4 15: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield java.util.ServiceLoader.service:Ljava/lang/Class;
16: aload 0
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
putfield java.util.ServiceLoader.serviceName:Ljava/lang/String;
17: aload 0
aconst_null
putfield java.util.ServiceLoader.layer:Ljava/lang/ModuleLayer;
18: aload 0
aload 3
putfield java.util.ServiceLoader.loader:Ljava/lang/ClassLoader;
19: aload 0
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 21
20: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
goto 22
21: StackMap locals:
StackMap stack: java.util.ServiceLoader
aconst_null
22: StackMap locals: java.util.ServiceLoader java.lang.Class java.lang.Class java.lang.ClassLoader
StackMap stack: java.util.ServiceLoader java.security.AccessControlContext
putfield java.util.ServiceLoader.acc:Ljava/security/AccessControlContext;
23: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljava/util/ServiceLoader<TS;>;
0 24 1 caller Ljava/lang/Class<*>;
0 24 2 svc Ljava/lang/Class<TS;>;
0 24 3 cl Ljava/lang/ClassLoader;
10 15 4 callerModule Ljava/lang/Module;
11 15 5 base Ljava/lang/Module;
12 15 6 svcModule Ljava/lang/Module;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<TS;>;Ljava/lang/ClassLoader;)V
MethodParameters:
Name Flags
caller
svc
cl
private void <init>(java.lang.Module, java.lang.Class<S>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/ClassLoader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield java.util.ServiceLoader.instantiatedProviders:Ljava/util/List;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield java.util.ServiceLoader.loadedProviders:Ljava/util/List;
3: aload 1
aload 2
invokevirtual java.lang.Module.canUse:(Ljava/lang/Class;)Z
ifne 5
4: aload 2
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 " does not declare `uses`"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
5: StackMap locals: java.util.ServiceLoader java.lang.Module java.lang.Class java.lang.ClassLoader
StackMap stack:
aload 0
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
putfield java.util.ServiceLoader.service:Ljava/lang/Class;
6: aload 0
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
putfield java.util.ServiceLoader.serviceName:Ljava/lang/String;
7: aload 0
aconst_null
putfield java.util.ServiceLoader.layer:Ljava/lang/ModuleLayer;
8: aload 0
aload 3
putfield java.util.ServiceLoader.loader:Ljava/lang/ClassLoader;
9: aload 0
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 11
10: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
goto 12
11: StackMap locals:
StackMap stack: java.util.ServiceLoader
aconst_null
12: StackMap locals: java.util.ServiceLoader java.lang.Module java.lang.Class java.lang.ClassLoader
StackMap stack: java.util.ServiceLoader java.security.AccessControlContext
putfield java.util.ServiceLoader.acc:Ljava/security/AccessControlContext;
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/util/ServiceLoader<TS;>;
0 14 1 callerModule Ljava/lang/Module;
0 14 2 svc Ljava/lang/Class<TS;>;
0 14 3 cl Ljava/lang/ClassLoader;
Signature: (Ljava/lang/Module;Ljava/lang/Class<TS;>;Ljava/lang/ClassLoader;)V
MethodParameters:
Name Flags
callerModule
svc
cl
private static void checkCaller(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: aload 1
ldc "no caller to check if it declares `uses`"
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 2
start local 2 3: aload 1
invokevirtual java.lang.Class.getModifiers:()I
istore 3
start local 3 4: aload 0
aload 1
aconst_null
iload 3
invokestatic jdk.internal.reflect.Reflection.verifyMemberAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
ifne 6
5: aload 1
new java.lang.StringBuilder
dup
ldc "service type not accessible to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
6: StackMap locals: java.lang.Module int
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.Module.canUse:(Ljava/lang/Class;)Z
ifne 8
7: aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " does not declare `uses`"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 caller Ljava/lang/Class<*>;
0 9 1 svc Ljava/lang/Class<*>;
3 9 2 callerModule Ljava/lang/Module;
4 9 3 mods I
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
caller
svc
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=3, args_size=3
start local 0 start local 1 start local 2 0: new java.util.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;
1: aload 2
2: invokespecial java.util.ServiceConfigurationError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 service Ljava/lang/Class<*>;
0 3 1 msg Ljava/lang/String;
0 3 2 cause Ljava/lang/Throwable;
Exceptions:
throws java.util.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 java.util.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 java.util.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 java.util.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 java.util.ServiceLoader.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 java.util.ServiceConfigurationError
Signature: (Ljava/lang/Class<*>;Ljava/net/URL;ILjava/lang/String;)V
MethodParameters:
Name Flags
service
u
line
msg
private boolean inExplicitModule(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.Module.isNamed:()Z
ifeq 2
aload 2
invokevirtual java.lang.Module.getDescriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.isAutomatic:()Z
ifne 2
iconst_1
ireturn
StackMap locals: java.lang.Module
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/ServiceLoader<TS;>;
0 3 1 clazz Ljava/lang/Class<*>;
1 3 2 module Ljava/lang/Module;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
private java.lang.reflect.Method findStaticProviderMethod(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/reflect/Method;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: getstatic java.util.ServiceLoader.LANG_ACCESS:Ljdk/internal/access/JavaLangAccess;
aload 1
ldc "provider"
iconst_0
anewarray java.lang.Class
invokeinterface jdk.internal.access.JavaLangAccess.getDeclaredPublicMethods:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/util/List;
astore 2
2: goto 5
StackMap locals: java.util.ServiceLoader java.lang.Class java.util.List
StackMap stack: java.lang.Throwable
3: astore 3
start local 3 4: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
ldc "Unable to get public provider() method"
aload 3
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 7
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 8: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 18
StackMap locals: java.util.ServiceLoader java.lang.Class java.util.List java.lang.reflect.Method top java.util.Iterator
StackMap stack:
9: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.reflect.Method
astore 4
start local 4 10: aload 4
invokevirtual java.lang.reflect.Method.getModifiers:()I
istore 6
start local 6 11: getstatic java.util.ServiceLoader.$assertionsDisabled:Z
ifne 12
iload 6
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifne 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals: java.util.ServiceLoader java.lang.Class java.util.List java.lang.reflect.Method java.lang.reflect.Method java.util.Iterator int
StackMap stack:
iload 6
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 18
13: aload 3
ifnull 17
14: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
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 " declares more than one"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: ldc " public static provider() method"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
17: StackMap locals:
StackMap stack:
aload 4
astore 3
end local 6 end local 4 18: StackMap locals: java.util.ServiceLoader java.lang.Class java.util.List java.lang.reflect.Method top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
19: aload 3
ifnull 23
20: aload 3
astore 4
start local 4 21: aload 4
invokedynamic run(Ljava/lang/reflect/Method;)Ljava/security/PrivilegedAction;
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;
java/util/ServiceLoader.lambda$0(Ljava/lang/reflect/Method;)Ljava/lang/Void; (6)
()Ljava/lang/Void;
astore 5
start local 5 22: aload 5
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 5 end local 4 23: StackMap locals: java.util.ServiceLoader java.lang.Class java.util.List java.lang.reflect.Method
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljava/util/ServiceLoader<TS;>;
0 24 1 clazz Ljava/lang/Class<*>;
1 24 2 methods Ljava/util/List<Ljava/lang/reflect/Method;>;
4 5 3 x Ljava/lang/Throwable;
8 24 3 result Ljava/lang/reflect/Method;
10 18 4 method Ljava/lang/reflect/Method;
11 18 6 mods I
21 23 4 m Ljava/lang/reflect/Method;
22 23 5 pa Ljava/security/PrivilegedAction<Ljava/lang/Void;>;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
Signature: (Ljava/lang/Class<*>;)Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
clazz
private java.lang.reflect.Constructor<?> getConstructor(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new java.util.ServiceLoader$1
dup
aload 0
aload 1
invokespecial java.util.ServiceLoader$1.<init>:(Ljava/util/ServiceLoader;Ljava/lang/Class;)V
1: astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aload 2
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.lang.reflect.Constructor
astore 3
4: goto 10
StackMap locals: java.util.ServiceLoader java.lang.Class java.security.PrivilegedExceptionAction java.lang.reflect.Constructor
StackMap stack: java.lang.Throwable
5: astore 4
start local 4 6: aload 4
instanceof java.security.PrivilegedActionException
ifeq 8
7: aload 4
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 4
8: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 5
start local 5 9: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " Unable to get public no-arg constructor"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 5 end local 4 10: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/util/ServiceLoader<TS;>;
0 11 1 clazz Ljava/lang/Class<*>;
2 11 2 pa Ljava/security/PrivilegedExceptionAction<Ljava/lang/reflect/Constructor<*>;>;
3 11 3 ctor Ljava/lang/reflect/Constructor<*>;
6 10 4 x Ljava/lang/Throwable;
9 10 5 cn Ljava/lang/String;
Exception table:
from to target type
3 4 5 Class java.lang.Throwable
Signature: (Ljava/lang/Class<*>;)Ljava/lang/reflect/Constructor<*>;
MethodParameters:
Name Flags
clazz
private java.util.ServiceLoader$Provider<S> loadProvider(jdk.internal.module.ServicesCatalog$ServiceProvider);
descriptor: (Ljdk/internal/module/ServicesCatalog$ServiceProvider;)Ljava/util/ServiceLoader$Provider;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.internal.module.ServicesCatalog$ServiceProvider.module:()Ljava/lang/Module;
astore 2
start local 2 1: aload 2
aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
invokevirtual java.lang.Module.canRead:(Ljava/lang/Module;)Z
ifne 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Module
StackMap stack:
aload 1
invokevirtual jdk.internal.module.ServicesCatalog$ServiceProvider.providerName:()Ljava/lang/String;
astore 3
start local 3 4: aconst_null
astore 4
start local 4 5: aload 0
getfield java.util.ServiceLoader.acc:Ljava/security/AccessControlContext;
ifnonnull 11
6: aload 2
aload 3
invokestatic java.lang.Class.forName:(Ljava/lang/Module;Ljava/lang/String;)Ljava/lang/Class;
astore 4
7: goto 19
StackMap locals: java.util.ServiceLoader jdk.internal.module.ServicesCatalog$ServiceProvider java.lang.Module java.lang.String java.lang.Class
StackMap stack: java.lang.LinkageError
8: astore 5
start local 5 9: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
ldc "Unable to load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 5 10: goto 19
11: StackMap locals:
StackMap stack:
aload 2
aload 3
invokedynamic run(Ljava/lang/Module;Ljava/lang/String;)Ljava/security/PrivilegedExceptionAction;
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;
java/util/ServiceLoader.lambda$1(Ljava/lang/Module;Ljava/lang/String;)Ljava/lang/Class; (6)
()Ljava/lang/Class;
astore 5
start local 5 12: aload 5
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.lang.Class
astore 4
13: goto 19
StackMap locals: java.util.ServiceLoader jdk.internal.module.ServicesCatalog$ServiceProvider java.lang.Module java.lang.String java.lang.Class java.security.PrivilegedExceptionAction
StackMap stack: java.lang.Throwable
14: astore 6
start local 6 15: aload 6
instanceof java.security.PrivilegedActionException
ifeq 17
16: aload 6
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 6
17: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
ldc "Unable to load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 6
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V
18: aconst_null
areturn
end local 6 end local 5 19: StackMap locals:
StackMap stack:
aload 4
ifnonnull 21
20: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
ldc "Provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
21: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.Class.getModifiers:()I
istore 5
start local 5 22: iload 5
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifne 24
23: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is not public"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
24: StackMap locals: int
StackMap stack:
aload 0
aload 4
invokevirtual java.util.ServiceLoader.inExplicitModule:(Ljava/lang/Class;)Z
ifeq 32
25: aload 0
aload 4
invokevirtual java.util.ServiceLoader.findStaticProviderMethod:(Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 6
start local 6 26: aload 6
ifnull 32
27: aload 6
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
astore 7
start local 7 28: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
aload 7
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 30
29: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " return type not a subtype"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
30: StackMap locals: java.lang.reflect.Method java.lang.Class
StackMap stack:
aload 7
astore 8
start local 8 31: new java.util.ServiceLoader$ProviderImpl
dup
aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
aload 8
aload 6
aload 0
getfield java.util.ServiceLoader.acc:Ljava/security/AccessControlContext;
invokespecial java.util.ServiceLoader$ProviderImpl.<init>:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/security/AccessControlContext;)V
areturn
end local 8 end local 7 end local 6 32: StackMap locals:
StackMap stack:
aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
aload 4
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 34
33: aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
aload 4
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 " not a subtype"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.ServiceLoader.fail:(Ljava/lang/Class;Ljava/lang/String;)V
34: StackMap locals:
StackMap stack:
aload 4
astore 6
start local 6 35: aload 0
aload 4
invokevirtual java.util.ServiceLoader.getConstructor:(Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 7
start local 7 36: new java.util.ServiceLoader$ProviderImpl
dup
aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
aload 6
aload 7
aload 0
getfield java.util.ServiceLoader.acc:Ljava/security/AccessControlContext;
invokespecial java.util.ServiceLoader$ProviderImpl.<init>:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/reflect/Constructor;Ljava/security/AccessControlContext;)V
areturn
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 37 0 this Ljava/util/ServiceLoader<TS;>;
0 37 1 provider Ljdk/internal/module/ServicesCatalog$ServiceProvider;
1 37 2 module Ljava/lang/Module;
4 37 3 cn Ljava/lang/String;
5 37 4 clazz Ljava/lang/Class<*>;
9 10 5 e Ljava/lang/LinkageError;
12 19 5 pa Ljava/security/PrivilegedExceptionAction<Ljava/lang/Class<*>;>;
15 19 6 x Ljava/lang/Throwable;
22 37 5 mods I
26 32 6 factoryMethod Ljava/lang/reflect/Method;
28 32 7 returnType Ljava/lang/Class<*>;
31 32 8 type Ljava/lang/Class<+TS;>;
35 37 6 type Ljava/lang/Class<+TS;>;
36 37 7 ctor Ljava/lang/reflect/Constructor<+TS;>;
Exception table:
from to target type
6 7 8 Class java.lang.LinkageError
12 13 14 Class java.lang.Throwable
Signature: (Ljdk/internal/module/ServicesCatalog$ServiceProvider;)Ljava/util/ServiceLoader$Provider<TS;>;
MethodParameters:
Name Flags
provider
private java.util.Iterator<java.util.ServiceLoader$Provider<S>> newLookupIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: getstatic java.util.ServiceLoader.$assertionsDisabled:Z
ifne 1
aload 0
getfield java.util.ServiceLoader.layer:Ljava/lang/ModuleLayer;
ifnull 1
aload 0
getfield java.util.ServiceLoader.loader:Ljava/lang/ClassLoader;
ifnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield java.util.ServiceLoader.layer:Ljava/lang/ModuleLayer;
ifnull 3
2: new java.util.ServiceLoader$LayerLookupIterator
dup
aload 0
invokespecial java.util.ServiceLoader$LayerLookupIterator.<init>:(Ljava/util/ServiceLoader;)V
areturn
3: StackMap locals:
StackMap stack:
new java.util.ServiceLoader$ModuleServicesLookupIterator
dup
aload 0
invokespecial java.util.ServiceLoader$ModuleServicesLookupIterator.<init>:(Ljava/util/ServiceLoader;)V
astore 1
start local 1 4: new java.util.ServiceLoader$LazyClassPathLookupIterator
dup
aload 0
invokespecial java.util.ServiceLoader$LazyClassPathLookupIterator.<init>:(Ljava/util/ServiceLoader;)V
astore 2
start local 2 5: new java.util.ServiceLoader$2
dup
aload 0
aload 1
aload 2
invokespecial java.util.ServiceLoader$2.<init>:(Ljava/util/ServiceLoader;Ljava/util/Iterator;Ljava/util/Iterator;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/ServiceLoader<TS;>;
4 6 1 first Ljava/util/Iterator<Ljava/util/ServiceLoader$Provider<TS;>;>;
5 6 2 second Ljava/util/Iterator<Ljava/util/ServiceLoader$Provider<TS;>;>;
Signature: ()Ljava/util/Iterator<Ljava/util/ServiceLoader$Provider<TS;>;>;
public java.util.Iterator<S> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.ServiceLoader.lookupIterator1:Ljava/util/Iterator;
ifnonnull 2
1: aload 0
aload 0
invokevirtual java.util.ServiceLoader.newLookupIterator:()Ljava/util/Iterator;
putfield java.util.ServiceLoader.lookupIterator1:Ljava/util/Iterator;
2: StackMap locals:
StackMap stack:
new java.util.ServiceLoader$3
dup
aload 0
invokespecial java.util.ServiceLoader$3.<init>:(Ljava/util/ServiceLoader;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/ServiceLoader<TS;>;
Signature: ()Ljava/util/Iterator<TS;>;
public java.util.stream.Stream<java.util.ServiceLoader$Provider<S>> stream();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield java.util.ServiceLoader.loadedAllProviders:Z
ifeq 2
1: aload 0
getfield java.util.ServiceLoader.loadedProviders:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield java.util.ServiceLoader.lookupIterator2:Ljava/util/Iterator;
ifnonnull 4
3: aload 0
aload 0
invokevirtual java.util.ServiceLoader.newLookupIterator:()Ljava/util/Iterator;
putfield java.util.ServiceLoader.lookupIterator2:Ljava/util/Iterator;
4: StackMap locals:
StackMap stack:
new java.util.ServiceLoader$ProviderSpliterator
dup
aload 0
aload 0
getfield java.util.ServiceLoader.lookupIterator2:Ljava/util/Iterator;
invokespecial java.util.ServiceLoader$ProviderSpliterator.<init>:(Ljava/util/ServiceLoader;Ljava/util/Iterator;)V
astore 1
start local 1 5: aload 1
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/ServiceLoader<TS;>;
5 6 1 s Ljava/util/Spliterator<Ljava/util/ServiceLoader$Provider<TS;>;>;
Signature: ()Ljava/util/stream/Stream<Ljava/util/ServiceLoader$Provider<TS;>;>;
static <S> java.util.ServiceLoader<S> load(java.lang.Class<S>, java.lang.ClassLoader, java.lang.Module);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;Ljava/lang/Module;)Ljava/util/ServiceLoader;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ServiceLoader
dup
aload 2
aload 0
aload 1
invokespecial java.util.ServiceLoader.<init>:(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/ClassLoader;)V
areturn
end local 2 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;
0 1 2 callerModule Ljava/lang/Module;
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;Ljava/lang/ClassLoader;Ljava/lang/Module;)Ljava/util/ServiceLoader<TS;>;
MethodParameters:
Name Flags
service
loader
callerModule
public static <S> java.util.ServiceLoader<S> load(java.lang.Class<S>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new java.util.ServiceLoader
dup
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
aload 0
aload 1
invokespecial java.util.ServiceLoader.<init>:(Ljava/lang/Class;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;
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader<TS;>;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
service
loader
public static <S> java.util.ServiceLoader<S> load(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Ljava/util/ServiceLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, 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: new java.util.ServiceLoader
dup
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
aload 0
aload 1
invokespecial java.util.ServiceLoader.<init>:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/ClassLoader;)V
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;
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;)Ljava/util/ServiceLoader<TS;>;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
service
public static <S> java.util.ServiceLoader<S> loadInstalled(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Ljava/util/ServiceLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: invokestatic java.lang.ClassLoader.getPlatformClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 1: new java.util.ServiceLoader
dup
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
aload 0
aload 1
invokespecial java.util.ServiceLoader.<init>:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/ClassLoader;)V
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;
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;)Ljava/util/ServiceLoader<TS;>;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
service
public static <S> java.util.ServiceLoader<S> load(java.lang.ModuleLayer, java.lang.Class<S>);
descriptor: (Ljava/lang/ModuleLayer;Ljava/lang/Class;)Ljava/util/ServiceLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new java.util.ServiceLoader
dup
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
aload 0
aload 1
invokespecial java.util.ServiceLoader.<init>:(Ljava/lang/Class;Ljava/lang/ModuleLayer;Ljava/lang/Class;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 layer Ljava/lang/ModuleLayer;
0 1 1 service Ljava/lang/Class<TS;>;
Signature: <S:Ljava/lang/Object;>(Ljava/lang/ModuleLayer;Ljava/lang/Class<TS;>;)Ljava/util/ServiceLoader<TS;>;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
layer
service
public java.util.Optional<S> findFirst();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 3
2: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
3: StackMap locals: java.util.Iterator
StackMap stack:
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/ServiceLoader<TS;>;
1 4 1 iterator Ljava/util/Iterator<TS;>;
Signature: ()Ljava/util/Optional<TS;>;
public void reload();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield java.util.ServiceLoader.lookupIterator1:Ljava/util/Iterator;
1: aload 0
getfield java.util.ServiceLoader.instantiatedProviders:Ljava/util/List;
invokeinterface java.util.List.clear:()V
2: aload 0
aconst_null
putfield java.util.ServiceLoader.lookupIterator2:Ljava/util/Iterator;
3: aload 0
getfield java.util.ServiceLoader.loadedProviders:Ljava/util/List;
invokeinterface java.util.List.clear:()V
4: aload 0
iconst_0
putfield java.util.ServiceLoader.loadedAllProviders:Z
5: aload 0
dup
getfield java.util.ServiceLoader.reloadCount:I
iconst_1
iadd
putfield java.util.ServiceLoader.reloadCount:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/ServiceLoader<TS;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "java.util.ServiceLoader["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield java.util.ServiceLoader.service:Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/ServiceLoader<TS;>;
private static java.lang.Void lambda$0(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Ljava/lang/Void;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
0: aload 0
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
1: aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.Class lambda$1(java.lang.Module, java.lang.String);
descriptor: (Ljava/lang/Module;Ljava/lang/String;)Ljava/lang/Class;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokestatic java.lang.Class.forName:(Ljava/lang/Module;Ljava/lang/String;)Ljava/lang/Class;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: <S:Ljava/lang/Object;>Ljava/lang/Object;Ljava/lang/Iterable<TS;>;
SourceFile: "ServiceLoader.java"
NestMembers:
java.util.ServiceLoader$1 java.util.ServiceLoader$2 java.util.ServiceLoader$3 java.util.ServiceLoader$LayerLookupIterator java.util.ServiceLoader$LazyClassPathLookupIterator java.util.ServiceLoader$LazyClassPathLookupIterator$1 java.util.ServiceLoader$LazyClassPathLookupIterator$2 java.util.ServiceLoader$ModuleServicesLookupIterator java.util.ServiceLoader$Provider java.util.ServiceLoader$ProviderImpl java.util.ServiceLoader$ProviderImpl$1 java.util.ServiceLoader$ProviderImpl$2 java.util.ServiceLoader$ProviderSpliterator
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
java.util.ServiceLoader$1
java.util.ServiceLoader$2
java.util.ServiceLoader$3
private final LayerLookupIterator = java.util.ServiceLoader$LayerLookupIterator of java.util.ServiceLoader
private final LazyClassPathLookupIterator = java.util.ServiceLoader$LazyClassPathLookupIterator of java.util.ServiceLoader
private final ModuleServicesLookupIterator = java.util.ServiceLoader$ModuleServicesLookupIterator of java.util.ServiceLoader
public abstract Provider = java.util.ServiceLoader$Provider of java.util.ServiceLoader
private ProviderImpl = java.util.ServiceLoader$ProviderImpl of java.util.ServiceLoader
private ProviderSpliterator = java.util.ServiceLoader$ProviderSpliterator of java.util.ServiceLoader
public final ServiceProvider = jdk.internal.module.ServicesCatalog$ServiceProvider of jdk.internal.module.ServicesCatalog