public abstract class org.springframework.transaction.support.ResourceHolderSynchronization<H extends org.springframework.transaction.support.ResourceHolder, K> implements org.springframework.transaction.support.TransactionSynchronization
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.transaction.support.ResourceHolderSynchronization
super_class: java.lang.Object
{
private final H resourceHolder;
descriptor: Lorg/springframework/transaction/support/ResourceHolder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TH;
private final K resourceKey;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TK;
private volatile boolean holderActive;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public void <init>(H, );
descriptor: (Lorg/springframework/transaction/support/ResourceHolder;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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_1
putfield org.springframework.transaction.support.ResourceHolderSynchronization.holderActive:Z
2: aload 0
aload 1
putfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
3: aload 0
aload 2
putfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 5 1 resourceHolder TH;
0 5 2 resourceKey TK;
Signature: (TH;TK;)V
MethodParameters:
Name Flags
resourceHolder
resourceKey
public void suspend();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.holderActive:Z
ifeq 2
1: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.unbindResource:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
public void resume();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.holderActive:Z
ifeq 2
1: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.bindResource:(Ljava/lang/Object;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.flushResource:(Lorg/springframework/transaction/support/ResourceHolder;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
public void beforeCommit(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 1 1 readOnly Z
MethodParameters:
Name Flags
readOnly
public void beforeCompletion();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.shouldUnbindAtCompletion:()Z
ifeq 5
1: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.unbindResource:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
iconst_0
putfield org.springframework.transaction.support.ResourceHolderSynchronization.holderActive:Z
3: aload 0
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.shouldReleaseBeforeCompletion:()Z
ifeq 5
4: aload 0
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.releaseResource:(Lorg/springframework/transaction/support/ResourceHolder;Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
public void afterCommit();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.shouldReleaseBeforeCompletion:()Z
ifne 2
1: aload 0
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.processResourceAfterCommit:(Lorg/springframework/transaction/support/ResourceHolder;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
public void afterCompletion(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.shouldUnbindAtCompletion:()Z
ifeq 12
1: iconst_0
istore 2
start local 2 2: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.holderActive:Z
ifeq 8
3: aload 0
iconst_0
putfield org.springframework.transaction.support.ResourceHolderSynchronization.holderActive:Z
4: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.unbindResourceIfPossible:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
invokeinterface org.springframework.transaction.support.ResourceHolder.unbound:()V
6: iconst_1
istore 2
7: goto 9
8: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.shouldReleaseAfterCompletion:(Lorg/springframework/transaction/support/ResourceHolder;)Z
istore 2
9: StackMap locals:
StackMap stack:
iload 2
ifeq 15
10: aload 0
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.releaseResource:(Lorg/springframework/transaction/support/ResourceHolder;Ljava/lang/Object;)V
end local 2 11: goto 15
12: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceKey:Ljava/lang/Object;
iload 1
ifne 13
iconst_1
goto 14
StackMap locals: org.springframework.transaction.support.ResourceHolderSynchronization int
StackMap stack: org.springframework.transaction.support.ResourceHolderSynchronization org.springframework.transaction.support.ResourceHolder java.lang.Object
13: iconst_0
StackMap locals: org.springframework.transaction.support.ResourceHolderSynchronization int
StackMap stack: org.springframework.transaction.support.ResourceHolderSynchronization org.springframework.transaction.support.ResourceHolder java.lang.Object int
14: invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.cleanupResource:(Lorg/springframework/transaction/support/ResourceHolder;Ljava/lang/Object;Z)V
15: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.transaction.support.ResourceHolderSynchronization.resourceHolder:Lorg/springframework/transaction/support/ResourceHolder;
invokeinterface org.springframework.transaction.support.ResourceHolder.reset:()V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 17 1 status I
2 11 2 releaseNecessary Z
MethodParameters:
Name Flags
status
protected boolean shouldUnbindAtCompletion();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
protected boolean shouldReleaseBeforeCompletion();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
protected boolean shouldReleaseAfterCompletion();
descriptor: (Lorg/springframework/transaction/support/ResourceHolder;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.transaction.support.ResourceHolderSynchronization.shouldReleaseBeforeCompletion:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 3 1 resourceHolder TH;
Signature: (TH;)Z
MethodParameters:
Name Flags
resourceHolder
protected void flushResource();
descriptor: (Lorg/springframework/transaction/support/ResourceHolder;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 1 1 resourceHolder TH;
Signature: (TH;)V
MethodParameters:
Name Flags
resourceHolder
protected void processResourceAfterCommit();
descriptor: (Lorg/springframework/transaction/support/ResourceHolder;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 1 1 resourceHolder TH;
Signature: (TH;)V
MethodParameters:
Name Flags
resourceHolder
protected void releaseResource(H, );
descriptor: (Lorg/springframework/transaction/support/ResourceHolder;Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 1 1 resourceHolder TH;
0 1 2 resourceKey TK;
Signature: (TH;TK;)V
MethodParameters:
Name Flags
resourceHolder
resourceKey
protected void cleanupResource(H, K, );
descriptor: (Lorg/springframework/transaction/support/ResourceHolder;Ljava/lang/Object;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/transaction/support/ResourceHolderSynchronization<TH;TK;>;
0 1 1 resourceHolder TH;
0 1 2 resourceKey TK;
0 1 3 committed Z
Signature: (TH;TK;Z)V
MethodParameters:
Name Flags
resourceHolder
resourceKey
committed
}
Signature: <H::Lorg/springframework/transaction/support/ResourceHolder;K:Ljava/lang/Object;>Ljava/lang/Object;Lorg/springframework/transaction/support/TransactionSynchronization;
SourceFile: "ResourceHolderSynchronization.java"