class org.jdbi.v3.core.LazyHandleSupplier implements org.jdbi.v3.core.extension.HandleSupplier, java.lang.AutoCloseable, org.jdbi.v3.core.internal.OnDemandHandleSupplier
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jdbi.v3.core.LazyHandleSupplier
super_class: java.lang.Object
{
private final java.lang.Object[] lock;
descriptor: [Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jdbi.v3.core.Jdbi db;
descriptor: Lorg/jdbi/v3/core/Jdbi;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ThreadLocal<org.jdbi.v3.core.config.ConfigRegistry> localConfig;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lorg/jdbi/v3/core/config/ConfigRegistry;>;
private final java.lang.ThreadLocal<org.jdbi.v3.core.extension.ExtensionMethod> localExtensionMethod;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lorg/jdbi/v3/core/extension/ExtensionMethod;>;
private volatile org.jdbi.v3.core.Handle handle;
descriptor: Lorg/jdbi/v3/core/Handle;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile boolean closed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(org.jdbi.v3.core.Jdbi, org.jdbi.v3.core.config.ConfigRegistry);
descriptor: (Lorg/jdbi/v3/core/Jdbi;Lorg/jdbi/v3/core/config/ConfigRegistry;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
anewarray java.lang.Object
putfield org.jdbi.v3.core.LazyHandleSupplier.lock:[Ljava/lang/Object;
2: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield org.jdbi.v3.core.LazyHandleSupplier.localExtensionMethod:Ljava/lang/ThreadLocal;
3: aload 0
iconst_0
putfield org.jdbi.v3.core.LazyHandleSupplier.closed:Z
4: aload 0
aload 1
putfield org.jdbi.v3.core.LazyHandleSupplier.db:Lorg/jdbi/v3/core/Jdbi;
5: aload 0
aload 2
invokedynamic get(Lorg/jdbi/v3/core/config/ConfigRegistry;)Ljava/util/function/Supplier;
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;
org/jdbi/v3/core/LazyHandleSupplier.lambda$0(Lorg/jdbi/v3/core/config/ConfigRegistry;)Lorg/jdbi/v3/core/config/ConfigRegistry; (6)
()Lorg/jdbi/v3/core/config/ConfigRegistry;
invokestatic java.lang.ThreadLocal.withInitial:(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal;
putfield org.jdbi.v3.core.LazyHandleSupplier.localConfig:Ljava/lang/ThreadLocal;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
0 7 1 db Lorg/jdbi/v3/core/Jdbi;
0 7 2 config Lorg/jdbi/v3/core/config/ConfigRegistry;
MethodParameters:
Name Flags
db
config
public org.jdbi.v3.core.config.ConfigRegistry getConfig();
descriptor: ()Lorg/jdbi/v3/core/config/ConfigRegistry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.localConfig:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast org.jdbi.v3.core.config.ConfigRegistry
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
public org.jdbi.v3.core.Jdbi getJdbi();
descriptor: ()Lorg/jdbi/v3/core/Jdbi;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.db:Lorg/jdbi/v3/core/Jdbi;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
public org.jdbi.v3.core.Handle getHandle();
descriptor: ()Lorg/jdbi/v3/core/Handle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
ifnonnull 2
1: aload 0
invokevirtual org.jdbi.v3.core.LazyHandleSupplier.initHandle:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
private void initHandle();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.lock:[Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
ifnonnull 7
2: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.closed:Z
ifeq 4
3: new java.lang.IllegalStateException
dup
ldc "Handle is closed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.db:Lorg/jdbi/v3/core/Jdbi;
invokevirtual org.jdbi.v3.core.Jdbi.open:()Lorg/jdbi/v3/core/Handle;
putfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
5: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.localExtensionMethod:Ljava/lang/ThreadLocal;
invokevirtual org.jdbi.v3.core.Handle.setExtensionMethodThreadLocal:(Ljava/lang/ThreadLocal;)V
6: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.localConfig:Ljava/lang/ThreadLocal;
invokevirtual org.jdbi.v3.core.Handle.setLocalConfig:(Ljava/lang/ThreadLocal;)V
7: StackMap locals:
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
Exception table:
from to target type
1 8 9 any
9 10 9 any
public <V> V invokeInContext(org.jdbi.v3.core.extension.ExtensionMethod, org.jdbi.v3.core.config.ConfigRegistry, java.util.concurrent.Callable<V>);
descriptor: (Lorg/jdbi/v3/core/extension/ExtensionMethod;Lorg/jdbi/v3/core/config/ConfigRegistry;Ljava/util/concurrent/Callable;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.localExtensionMethod:Ljava/lang/ThreadLocal;
aload 1
1: aload 0
aload 2
aload 3
invokedynamic call(Lorg/jdbi/v3/core/LazyHandleSupplier;Lorg/jdbi/v3/core/config/ConfigRegistry;Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;
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;
org/jdbi/v3/core/LazyHandleSupplier.lambda$1(Lorg/jdbi/v3/core/config/ConfigRegistry;Ljava/util/concurrent/Callable;)Ljava/lang/Object; (7)
()Ljava/lang/Object;
2: invokestatic org.jdbi.v3.core.internal.Invocations.invokeWith:(Ljava/lang/ThreadLocal;Ljava/lang/Object;Ljava/util/concurrent/Callable;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
0 3 1 extensionMethod Lorg/jdbi/v3/core/extension/ExtensionMethod;
0 3 2 config Lorg/jdbi/v3/core/config/ConfigRegistry;
0 3 3 task Ljava/util/concurrent/Callable<TV;>;
Exceptions:
throws java.lang.Exception
Signature: <V:Ljava/lang/Object;>(Lorg/jdbi/v3/core/extension/ExtensionMethod;Lorg/jdbi/v3/core/config/ConfigRegistry;Ljava/util/concurrent/Callable<TV;>;)TV;
MethodParameters:
Name Flags
extensionMethod
config
task
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.lock:[Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_1
putfield org.jdbi.v3.core.LazyHandleSupplier.closed:Z
2: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
ifnonnull 6
3: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.localConfig:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
4: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.localExtensionMethod:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
5: goto 7
6: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.handle:Lorg/jdbi/v3/core/Handle;
invokevirtual org.jdbi.v3.core.Handle.close:()V
7: StackMap locals:
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
Exception table:
from to target type
1 8 9 any
9 10 9 any
private static org.jdbi.v3.core.config.ConfigRegistry lambda$0(org.jdbi.v3.core.config.ConfigRegistry);
descriptor: (Lorg/jdbi/v3/core/config/ConfigRegistry;)Lorg/jdbi/v3/core/config/ConfigRegistry;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
areturn
LocalVariableTable:
Start End Slot Name Signature
private java.lang.Object lambda$1(org.jdbi.v3.core.config.ConfigRegistry, java.util.concurrent.Callable);
descriptor: (Lorg/jdbi/v3/core/config/ConfigRegistry;Ljava/util/concurrent/Callable;)Ljava/lang/Object;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 0
getfield org.jdbi.v3.core.LazyHandleSupplier.localConfig:Ljava/lang/ThreadLocal;
aload 1
aload 2
invokestatic org.jdbi.v3.core.internal.Invocations.invokeWith:(Ljava/lang/ThreadLocal;Ljava/lang/Object;Ljava/util/concurrent/Callable;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jdbi/v3/core/LazyHandleSupplier;
Exceptions:
throws java.lang.Exception
}
SourceFile: "LazyHandleSupplier.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles