public class org.springframework.aop.target.ThreadLocalTargetSource extends org.springframework.aop.target.AbstractPrototypeBasedTargetSource implements org.springframework.aop.target.ThreadLocalTargetSourceStats, org.springframework.beans.factory.DisposableBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.aop.target.ThreadLocalTargetSource
super_class: org.springframework.aop.target.AbstractPrototypeBasedTargetSource
{
private final java.lang.ThreadLocal<java.lang.Object> targetInThread;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/lang/Object;>;
private final java.util.Set<java.lang.Object> targetSet;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Object;>;
private int invocationCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int hitCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.aop.target.AbstractPrototypeBasedTargetSource.<init>:()V
1: aload 0
2: new org.springframework.core.NamedThreadLocal
dup
new java.lang.StringBuilder
dup
ldc "Thread-local instance of bean '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.springframework.aop.target.ThreadLocalTargetSource.getTargetBeanName:()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;
invokespecial org.springframework.core.NamedThreadLocal.<init>:(Ljava/lang/String;)V
putfield org.springframework.aop.target.ThreadLocalTargetSource.targetInThread:Ljava/lang/ThreadLocal;
3: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/aop/target/ThreadLocalTargetSource;
public java.lang.Object getTarget();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
dup
getfield org.springframework.aop.target.ThreadLocalTargetSource.invocationCount:I
iconst_1
iadd
putfield org.springframework.aop.target.ThreadLocalTargetSource.invocationCount:I
1: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetInThread:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
astore 1
start local 1 2: aload 1
ifnonnull 15
3: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 7
4: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "No target for prototype '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.springframework.aop.target.ThreadLocalTargetSource.getTargetBeanName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' bound to thread: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc "creating one and binding it to thread '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.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;
6: invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
7: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual org.springframework.aop.target.ThreadLocalTargetSource.newPrototypeInstance:()Ljava/lang/Object;
astore 1
8: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetInThread:Ljava/lang/ThreadLocal;
aload 1
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
9: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
dup
astore 2
monitorenter
10: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
11: aload 2
monitorexit
12: goto 16
StackMap locals: org.springframework.aop.target.ThreadLocalTargetSource java.lang.Object java.util.Set
StackMap stack: java.lang.Throwable
13: aload 2
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.springframework.aop.target.ThreadLocalTargetSource.hitCount:I
iconst_1
iadd
putfield org.springframework.aop.target.ThreadLocalTargetSource.hitCount:I
16: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/springframework/aop/target/ThreadLocalTargetSource;
2 17 1 target Ljava/lang/Object;
Exception table:
from to target type
10 12 13 any
13 14 13 any
Exceptions:
throws org.springframework.beans.BeansException
public void destroy();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.logger:Lorg/apache/commons/logging/Log;
ldc "Destroying ThreadLocalTargetSource bindings"
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
1: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
dup
astore 1
monitorenter
2: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.springframework.aop.target.ThreadLocalTargetSource java.util.Set top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 4: aload 0
aload 2
invokevirtual org.springframework.aop.target.ThreadLocalTargetSource.destroyPrototypeInstance:(Ljava/lang/Object;)V
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
7: aload 1
monitorexit
8: goto 11
StackMap locals: org.springframework.aop.target.ThreadLocalTargetSource java.util.Set
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetInThread:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/aop/target/ThreadLocalTargetSource;
4 5 2 target Ljava/lang/Object;
Exception table:
from to target type
2 8 9 any
9 10 9 any
public int getInvocationCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.invocationCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/aop/target/ThreadLocalTargetSource;
public int getHitCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.hitCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/aop/target/ThreadLocalTargetSource;
public int getObjectCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
dup
astore 1
monitorenter
1: aload 0
getfield org.springframework.aop.target.ThreadLocalTargetSource.targetSet:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
aload 1
monitorexit
2: ireturn
3: StackMap locals: org.springframework.aop.target.ThreadLocalTargetSource java.util.Set
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/aop/target/ThreadLocalTargetSource;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public org.springframework.aop.IntroductionAdvisor getStatsMixin();
descriptor: ()Lorg/springframework/aop/IntroductionAdvisor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new org.springframework.aop.support.DelegatingIntroductionInterceptor
dup
aload 0
invokespecial org.springframework.aop.support.DelegatingIntroductionInterceptor.<init>:(Ljava/lang/Object;)V
astore 1
start local 1 1: new org.springframework.aop.support.DefaultIntroductionAdvisor
dup
aload 1
ldc Lorg/springframework/aop/target/ThreadLocalTargetSourceStats;
invokespecial org.springframework.aop.support.DefaultIntroductionAdvisor.<init>:(Lorg/springframework/aop/DynamicIntroductionAdvice;Ljava/lang/Class;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/aop/target/ThreadLocalTargetSource;
1 2 1 dii Lorg/springframework/aop/support/DelegatingIntroductionInterceptor;
}
SourceFile: "ThreadLocalTargetSource.java"