public abstract class org.springframework.transaction.support.TransactionSynchronizationUtils
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.transaction.support.TransactionSynchronizationUtils
super_class: java.lang.Object
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean aopAvailable;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/springframework/transaction/support/TransactionSynchronizationUtils;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.transaction.support.TransactionSynchronizationUtils.logger:Lorg/apache/commons/logging/Log;
1: ldc "org.springframework.aop.scope.ScopedObject"
ldc Lorg/springframework/transaction/support/TransactionSynchronizationUtils;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
2: invokestatic org.springframework.util.ClassUtils.isPresent:(Ljava/lang/String;Ljava/lang/ClassLoader;)Z
putstatic org.springframework.transaction.support.TransactionSynchronizationUtils.aopAvailable:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/springframework/transaction/support/TransactionSynchronizationUtils;
public static boolean sameResourceFactory(org.springframework.transaction.support.ResourceTransactionManager, java.lang.Object);
descriptor: (Lorg/springframework/transaction/support/ResourceTransactionManager;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.springframework.transaction.support.ResourceTransactionManager.getResourceFactory:()Ljava/lang/Object;
invokestatic org.springframework.transaction.support.TransactionSynchronizationUtils.unwrapResourceIfNecessary:(Ljava/lang/Object;)Ljava/lang/Object;
aload 1
invokestatic org.springframework.transaction.support.TransactionSynchronizationUtils.unwrapResourceIfNecessary:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 tm Lorg/springframework/transaction/support/ResourceTransactionManager;
0 1 1 resourceFactory Ljava/lang/Object;
MethodParameters:
Name Flags
tm
resourceFactory
static java.lang.Object unwrapResourceIfNecessary(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "Resource must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
astore 1
start local 1 2: aload 1
instanceof org.springframework.core.InfrastructureProxy
ifeq 4
3: aload 1
checkcast org.springframework.core.InfrastructureProxy
invokeinterface org.springframework.core.InfrastructureProxy.getWrappedObject:()Ljava/lang/Object;
astore 1
4: StackMap locals: java.lang.Object
StackMap stack:
getstatic org.springframework.transaction.support.TransactionSynchronizationUtils.aopAvailable:Z
ifeq 6
5: aload 1
invokestatic org.springframework.transaction.support.TransactionSynchronizationUtils$ScopedProxyUnwrapper.unwrapIfNecessary:(Ljava/lang/Object;)Ljava/lang/Object;
astore 1
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 resource Ljava/lang/Object;
2 7 1 resourceRef Ljava/lang/Object;
MethodParameters:
Name Flags
resource
public static void triggerFlush();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=0
0: invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.getSynchronizations:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 1
goto 3
StackMap locals: top java.util.Iterator
StackMap stack:
1: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.transaction.support.TransactionSynchronization
astore 0
start local 0 2: aload 0
invokeinterface org.springframework.transaction.support.TransactionSynchronization.flush:()V
end local 0 3: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
LocalVariableTable:
Start End Slot Name Signature
2 3 0 synchronization Lorg/springframework/transaction/support/TransactionSynchronization;
public static void triggerBeforeCommit(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.getSynchronizations:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: int top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.transaction.support.TransactionSynchronization
astore 1
start local 1 2: aload 1
iload 0
invokeinterface org.springframework.transaction.support.TransactionSynchronization.beforeCommit:(Z)V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 readOnly Z
2 3 1 synchronization Lorg/springframework/transaction/support/TransactionSynchronization;
MethodParameters:
Name Flags
readOnly
public static void triggerBeforeCompletion();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=0
0: invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.getSynchronizations:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 1
goto 6
StackMap locals: top java.util.Iterator
StackMap stack:
1: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.transaction.support.TransactionSynchronization
astore 0
start local 0 2: aload 0
invokeinterface org.springframework.transaction.support.TransactionSynchronization.beforeCompletion:()V
3: goto 6
4: StackMap locals: org.springframework.transaction.support.TransactionSynchronization java.util.Iterator
StackMap stack: java.lang.Throwable
astore 2
start local 2 5: getstatic org.springframework.transaction.support.TransactionSynchronizationUtils.logger:Lorg/apache/commons/logging/Log;
ldc "TransactionSynchronization.beforeCompletion threw exception"
aload 2
invokeinterface org.apache.commons.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 end local 0 6: StackMap locals: top java.util.Iterator
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
7: return
LocalVariableTable:
Start End Slot Name Signature
2 6 0 synchronization Lorg/springframework/transaction/support/TransactionSynchronization;
5 6 2 tsex Ljava/lang/Throwable;
Exception table:
from to target type
2 3 4 Class java.lang.Throwable
public static void triggerAfterCommit();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.getSynchronizations:()Ljava/util/List;
invokestatic org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCommit:(Ljava/util/List;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
public static void invokeAfterCommit(java.util.List<org.springframework.transaction.support.TransactionSynchronization>);
descriptor: (Ljava/util/List;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
ifnull 5
1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: java.util.List top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.transaction.support.TransactionSynchronization
astore 1
start local 1 3: aload 1
invokeinterface org.springframework.transaction.support.TransactionSynchronization.afterCommit:()V
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: StackMap locals: java.util.List
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 synchronizations Ljava/util/List<Lorg/springframework/transaction/support/TransactionSynchronization;>;
3 4 1 synchronization Lorg/springframework/transaction/support/TransactionSynchronization;
Signature: (Ljava/util/List<Lorg/springframework/transaction/support/TransactionSynchronization;>;)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
synchronizations
public static void triggerAfterCompletion(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic org.springframework.transaction.support.TransactionSynchronizationManager.getSynchronizations:()Ljava/util/List;
astore 1
start local 1 1: aload 1
iload 0
invokestatic org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion:(Ljava/util/List;I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 completionStatus I
1 3 1 synchronizations Ljava/util/List<Lorg/springframework/transaction/support/TransactionSynchronization;>;
MethodParameters:
Name Flags
completionStatus
public static void invokeAfterCompletion(java.util.List<org.springframework.transaction.support.TransactionSynchronization>, );
descriptor: (Ljava/util/List;I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
ifnull 8
1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: java.util.List int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.transaction.support.TransactionSynchronization
astore 2
start local 2 3: aload 2
iload 1
invokeinterface org.springframework.transaction.support.TransactionSynchronization.afterCompletion:(I)V
4: goto 7
5: StackMap locals: java.util.List int org.springframework.transaction.support.TransactionSynchronization java.util.Iterator
StackMap stack: java.lang.Throwable
astore 4
start local 4 6: getstatic org.springframework.transaction.support.TransactionSynchronizationUtils.logger:Lorg/apache/commons/logging/Log;
ldc "TransactionSynchronization.afterCompletion threw exception"
aload 4
invokeinterface org.apache.commons.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 end local 2 7: StackMap locals: java.util.List int top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: StackMap locals: java.util.List int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 synchronizations Ljava/util/List<Lorg/springframework/transaction/support/TransactionSynchronization;>;
0 9 1 completionStatus I
3 7 2 synchronization Lorg/springframework/transaction/support/TransactionSynchronization;
6 7 4 tsex Ljava/lang/Throwable;
Exception table:
from to target type
3 4 5 Class java.lang.Throwable
Signature: (Ljava/util/List<Lorg/springframework/transaction/support/TransactionSynchronization;>;I)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
synchronizations
completionStatus
}
SourceFile: "TransactionSynchronizationUtils.java"
NestMembers:
org.springframework.transaction.support.TransactionSynchronizationUtils$ScopedProxyUnwrapper
InnerClasses:
private ScopedProxyUnwrapper = org.springframework.transaction.support.TransactionSynchronizationUtils$ScopedProxyUnwrapper of org.springframework.transaction.support.TransactionSynchronizationUtils