public class org.apache.catalina.core.DefaultInstanceManager implements org.apache.tomcat.InstanceManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.catalina.core.DefaultInstanceManager
super_class: java.lang.Object
{
private static final org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] ANNOTATIONS_EMPTY;
descriptor: [Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private static final boolean EJB_PRESENT;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean JPA_PRESENT;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean WS_PRESENT;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final javax.naming.Context context;
descriptor: Ljavax/naming/Context;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>> injectionMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
protected final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.ClassLoader containerClassLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final boolean privileged;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final boolean ignoreAnnotations;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final java.util.Set<java.lang.String> restrictedClasses;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private final org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap<java.lang.Class<?>, org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]> annotationCache;
descriptor: Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap<Ljava/lang/Class<*>;[Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;>;
private final java.util.Map<java.lang.String, java.lang.String> postConstructMethods;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private final java.util.Map<java.lang.String, java.lang.String> preDestroyMethods;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: iconst_0
anewarray org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry
1: putstatic org.apache.catalina.core.DefaultInstanceManager.ANNOTATIONS_EMPTY:[Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
2: ldc "org.apache.catalina.core"
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/String;)Lorg/apache/tomcat/util/res/StringManager;
3: putstatic org.apache.catalina.core.DefaultInstanceManager.sm:Lorg/apache/tomcat/util/res/StringManager;
4: aconst_null
astore 0
start local 0 5: ldc "javax.ejb.EJB"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
6: goto 8
StackMap locals: java.lang.Class
StackMap stack: java.lang.ClassNotFoundException
7: pop
8: StackMap locals:
StackMap stack:
aload 0
ifnull 9
iconst_1
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: putstatic org.apache.catalina.core.DefaultInstanceManager.EJB_PRESENT:Z
11: aconst_null
astore 0
12: ldc "javax.persistence.PersistenceContext"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
13: goto 15
StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
14: pop
15: StackMap locals:
StackMap stack:
aload 0
ifnull 16
iconst_1
goto 17
StackMap locals:
StackMap stack:
16: iconst_0
StackMap locals:
StackMap stack: int
17: putstatic org.apache.catalina.core.DefaultInstanceManager.JPA_PRESENT:Z
18: aconst_null
astore 0
19: ldc "javax.xml.ws.WebServiceRef"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
20: goto 22
StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
21: pop
22: StackMap locals:
StackMap stack:
aload 0
ifnull 23
iconst_1
goto 24
StackMap locals:
StackMap stack:
23: iconst_0
StackMap locals:
StackMap stack: int
24: putstatic org.apache.catalina.core.DefaultInstanceManager.WS_PRESENT:Z
end local 0 25: return
LocalVariableTable:
Start End Slot Name Signature
5 25 0 clazz Ljava/lang/Class<*>;
Exception table:
from to target type
5 6 7 Class java.lang.ClassNotFoundException
12 13 14 Class java.lang.ClassNotFoundException
19 20 21 Class java.lang.ClassNotFoundException
public void <init>(javax.naming.Context, java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>>, org.apache.catalina.Context, java.lang.ClassLoader);
descriptor: (Ljavax/naming/Context;Ljava/util/Map;Lorg/apache/catalina/Context;Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap
dup
invokespecial org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap.<init>:()V
putfield org.apache.catalina.core.DefaultInstanceManager.annotationCache:Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap;
3: aload 0
aload 3
invokeinterface org.apache.catalina.Context.getLoader:()Lorg/apache/catalina/Loader;
invokeinterface org.apache.catalina.Loader.getClassLoader:()Ljava/lang/ClassLoader;
putfield org.apache.catalina.core.DefaultInstanceManager.classLoader:Ljava/lang/ClassLoader;
4: aload 0
aload 3
invokeinterface org.apache.catalina.Context.getPrivileged:()Z
putfield org.apache.catalina.core.DefaultInstanceManager.privileged:Z
5: aload 0
aload 4
putfield org.apache.catalina.core.DefaultInstanceManager.containerClassLoader:Ljava/lang/ClassLoader;
6: aload 0
aload 3
invokeinterface org.apache.catalina.Context.getIgnoreAnnotations:()Z
putfield org.apache.catalina.core.DefaultInstanceManager.ignoreAnnotations:Z
7: aload 3
invokeinterface org.apache.catalina.Context.getLogger:()Lorg/apache/juli/logging/Log;
astore 5
start local 5 8: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 6
start local 6 9: aload 6
10: ldc "org/apache/catalina/core/RestrictedServlets.properties"
11: ldc "defaultInstanceManager.restrictedServletsResource"
aload 5
12: invokestatic org.apache.catalina.core.DefaultInstanceManager.loadProperties:(Ljava/util/Set;Ljava/lang/String;Ljava/lang/String;Lorg/apache/juli/logging/Log;)V
13: aload 6
14: ldc "org/apache/catalina/core/RestrictedListeners.properties"
15: ldc "defaultInstanceManager.restrictedListenersResource"
aload 5
16: invokestatic org.apache.catalina.core.DefaultInstanceManager.loadProperties:(Ljava/util/Set;Ljava/lang/String;Ljava/lang/String;Lorg/apache/juli/logging/Log;)V
17: aload 6
18: ldc "org/apache/catalina/core/RestrictedFilters.properties"
19: ldc "defaultInstanceManager.restrictedFiltersResource"
aload 5
20: invokestatic org.apache.catalina.core.DefaultInstanceManager.loadProperties:(Ljava/util/Set;Ljava/lang/String;Ljava/lang/String;Lorg/apache/juli/logging/Log;)V
21: aload 0
aload 6
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putfield org.apache.catalina.core.DefaultInstanceManager.restrictedClasses:Ljava/util/Set;
22: aload 0
aload 1
putfield org.apache.catalina.core.DefaultInstanceManager.context:Ljavax/naming/Context;
23: aload 0
aload 2
putfield org.apache.catalina.core.DefaultInstanceManager.injectionMap:Ljava/util/Map;
24: aload 0
aload 3
invokeinterface org.apache.catalina.Context.findPostConstructMethods:()Ljava/util/Map;
putfield org.apache.catalina.core.DefaultInstanceManager.postConstructMethods:Ljava/util/Map;
25: aload 0
aload 3
invokeinterface org.apache.catalina.Context.findPreDestroyMethods:()Ljava/util/Map;
putfield org.apache.catalina.core.DefaultInstanceManager.preDestroyMethods:Ljava/util/Map;
26: return
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 27 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 27 1 context Ljavax/naming/Context;
0 27 2 injectionMap Ljava/util/Map<Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
0 27 3 catalinaContext Lorg/apache/catalina/Context;
0 27 4 containerClassLoader Ljava/lang/ClassLoader;
8 27 5 log Lorg/apache/juli/logging/Log;
9 27 6 classNames Ljava/util/Set<Ljava/lang/String;>;
Signature: (Ljavax/naming/Context;Ljava/util/Map<Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;Lorg/apache/catalina/Context;Ljava/lang/ClassLoader;)V
MethodParameters:
Name Flags
context
injectionMap
catalinaContext
containerClassLoader
public newInstance(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
aload 1
invokevirtual org.apache.catalina.core.DefaultInstanceManager.newInstance:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 1 1 clazz Ljava/lang/Class<*>;
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, javax.naming.NamingException, java.lang.InstantiationException, java.lang.IllegalArgumentException, java.lang.NoSuchMethodException, java.lang.SecurityException
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
clazz
public java.lang.Object newInstance(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.classLoader:Ljava/lang/ClassLoader;
invokevirtual org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
astore 2
start local 2 1: aload 0
aload 2
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
aload 2
invokevirtual org.apache.catalina.core.DefaultInstanceManager.newInstance:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 2 1 className Ljava/lang/String;
1 2 2 clazz Ljava/lang/Class<*>;
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, javax.naming.NamingException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalArgumentException, java.lang.NoSuchMethodException, java.lang.SecurityException
MethodParameters:
Name Flags
className
public java.lang.Object newInstance(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 1: aload 0
aload 3
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
aload 3
invokevirtual org.apache.catalina.core.DefaultInstanceManager.newInstance:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 2 1 className Ljava/lang/String;
0 2 2 classLoader Ljava/lang/ClassLoader;
1 2 3 clazz Ljava/lang/Class<*>;
Exceptions:
throws java.lang.IllegalAccessException, javax.naming.NamingException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalArgumentException, java.lang.NoSuchMethodException, java.lang.SecurityException
MethodParameters:
Name Flags
className final
classLoader final
public void newInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual org.apache.catalina.core.DefaultInstanceManager.newInstance:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 2 1 o Ljava/lang/Object;
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, javax.naming.NamingException
MethodParameters:
Name Flags
o
private newInstance(, java.lang.Class<?>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.ignoreAnnotations:Z
ifne 5
1: aload 0
aload 2
invokevirtual org.apache.catalina.core.DefaultInstanceManager.assembleInjectionsFromClassHierarchy:(Ljava/lang/Class;)Ljava/util/Map;
astore 3
start local 3 2: aload 0
aload 2
aload 3
invokevirtual org.apache.catalina.core.DefaultInstanceManager.populateAnnotationsCache:(Ljava/lang/Class;Ljava/util/Map;)V
3: aload 0
aload 1
aload 3
invokevirtual org.apache.catalina.core.DefaultInstanceManager.processAnnotations:(Ljava/lang/Object;Ljava/util/Map;)V
4: aload 0
aload 1
aload 2
invokevirtual org.apache.catalina.core.DefaultInstanceManager.postConstruct:(Ljava/lang/Object;Ljava/lang/Class;)V
end local 3 5: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 6 1 instance Ljava/lang/Object;
0 6 2 clazz Ljava/lang/Class<*>;
2 5 3 injections Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, javax.naming.NamingException
Signature: (Ljava/lang/Object;Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
instance
clazz
private java.util.Map<java.lang.String, java.lang.String> assembleInjectionsFromClassHierarchy(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: goto 7
3: StackMap locals: java.util.Map java.util.Map
StackMap stack:
aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.injectionMap:Ljava/util/Map;
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 3
4: aload 3
ifnull 6
5: aload 2
aload 3
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 1
7: StackMap locals:
StackMap stack:
aload 1
ifnonnull 3
8: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 9 1 clazz Ljava/lang/Class<*>;
1 9 2 injections Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 9 3 currentInjections Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
clazz
public void destroyInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.ignoreAnnotations:Z
ifne 2
1: aload 0
aload 1
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual org.apache.catalina.core.DefaultInstanceManager.preDestroy:(Ljava/lang/Object;Ljava/lang/Class;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 3 1 instance Ljava/lang/Object;
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
MethodParameters:
Name Flags
instance
protected void postConstruct(, java.lang.Class<?>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.context:Ljavax/naming/Context;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 3
start local 3 3: aload 3
ldc Ljava/lang/Object;
if_acmpeq 5
4: aload 0
aload 1
aload 3
invokevirtual org.apache.catalina.core.DefaultInstanceManager.postConstruct:(Ljava/lang/Object;Ljava/lang/Class;)V
5: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.annotationCache:Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap;
aload 2
invokevirtual org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
astore 4
start local 4 6: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 20
StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.lang.Class java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] top int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
7: aload 8
iload 6
aaload
astore 5
start local 5 8: aload 5
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getType:()Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
getstatic org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntryType.POST_CONSTRUCT:Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
if_acmpne 19
9: aload 2
aload 5
invokestatic org.apache.catalina.core.DefaultInstanceManager.getMethod:(Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Method;
astore 9
start local 9 10: aload 9
dup
astore 10
monitorenter
11: aload 9
invokevirtual java.lang.reflect.Method.isAccessible:()Z
istore 11
start local 11 12: aload 9
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
13: aload 9
aload 1
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 9
iload 11
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
end local 11 15: aload 10
monitorexit
16: goto 19
StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.lang.Class java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] java.lang.reflect.Method java.lang.reflect.Method
StackMap stack: java.lang.Throwable
17: aload 10
monitorexit
18: athrow
end local 9 end local 5 19: StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.lang.Class java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] top int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
20: iload 6
iload 7
if_icmplt 7
21: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 22 1 instance Ljava/lang/Object;
0 22 2 clazz Ljava/lang/Class<*>;
3 22 3 superClass Ljava/lang/Class<*>;
6 22 4 annotations [Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
8 19 5 entry Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
10 19 9 postConstruct Ljava/lang/reflect/Method;
12 15 11 accessibility Z
Exception table:
from to target type
11 16 17 any
17 18 17 any
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Signature: (Ljava/lang/Object;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
instance
clazz final
protected void preDestroy(, java.lang.Class<?>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 3
start local 3 1: aload 3
ldc Ljava/lang/Object;
if_acmpeq 3
2: aload 0
aload 1
aload 3
invokevirtual org.apache.catalina.core.DefaultInstanceManager.preDestroy:(Ljava/lang/Object;Ljava/lang/Class;)V
3: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.annotationCache:Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap;
aload 2
invokevirtual org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
astore 4
start local 4 4: aload 4
ifnonnull 6
5: return
6: StackMap locals: org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 20
StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.lang.Class java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] top int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
7: aload 8
iload 6
aaload
astore 5
start local 5 8: aload 5
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getType:()Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
getstatic org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntryType.PRE_DESTROY:Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
if_acmpne 19
9: aload 2
aload 5
invokestatic org.apache.catalina.core.DefaultInstanceManager.getMethod:(Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Method;
astore 9
start local 9 10: aload 9
dup
astore 10
monitorenter
11: aload 9
invokevirtual java.lang.reflect.Method.isAccessible:()Z
istore 11
start local 11 12: aload 9
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
13: aload 9
aload 1
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 9
iload 11
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
end local 11 15: aload 10
monitorexit
16: goto 19
StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.lang.Class java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] java.lang.reflect.Method java.lang.reflect.Method
StackMap stack: java.lang.Throwable
17: aload 10
monitorexit
18: athrow
end local 9 end local 5 19: StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.lang.Class java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] top int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
20: iload 6
iload 7
if_icmplt 7
21: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 22 1 instance Ljava/lang/Object;
0 22 2 clazz Ljava/lang/Class<*>;
1 22 3 superClass Ljava/lang/Class<*>;
4 22 4 annotations [Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
8 19 5 entry Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
10 19 9 preDestroy Ljava/lang/reflect/Method;
12 15 11 accessibility Z
Exception table:
from to target type
11 16 17 any
17 18 17 any
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Signature: (Ljava/lang/Object;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
instance
clazz final
public void backgroundProcess();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.annotationCache:Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap;
invokevirtual org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap.maintain:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
protected void populateAnnotationsCache(java.lang.Class<?>, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/lang/Class;Ljava/util/Map;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tThe method getAnnotation(Class<T>) in the type Method is not applicable for the arguments (Class<EJB>)\n\tEJB cannot be resolved to a type\n\tEJB cannot be resolved to a type\n\tEJB cannot be resolved to a type\n\tThe method getAnnotation(Class<T>) in the type Method is not applicable for the arguments (Class<PersistenceContext>)\n\tPersistenceContext cannot be resolved to a type\n\tPersistenceContext cannot be resolved to a type\n\tPersistenceContext cannot be resolved to a type\n\tThe method getAnnotation(Class<T>) in the type Method is not applicable for the arguments (Class<PersistenceUnit>)\n\tPersistenceUnit cannot be resolved to a type\n\tPersistenceUnit cannot be resolved to a type\n\tPersistenceUnit cannot be resolved to a type\n\tThe method getAnnotation(Class<T>) in the type Field is not applicable for the arguments (Class<EJB>)\n\tEJB cannot be resolved to a type\n\tEJB cannot be resolved to a type\n\tEJB cannot be resolved to a type\n\tThe method getAnnotation(Class<T>) in the type Field is not applicable for the arguments (Class<PersistenceContext>)\n\tPersistenceContext cannot be resolved to a type\n\tPersistenceContext cannot be resolved to a type\n\tPersistenceContext cannot be resolved to a type\n\tThe method getAnnotation(Class<T>) in the type Field is not applicable for the arguments (Class<PersistenceUnit>)\n\tPersistenceUnit cannot be resolved to a type\n\tPersistenceUnit cannot be resolved to a type\n\tPersistenceUnit cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, javax.naming.NamingException
Signature: (Ljava/lang/Class<*>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
clazz
injections
protected void processAnnotations(, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/lang/Object;Ljava/util/Map;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.context:Ljavax/naming/Context;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 3
start local 3 3: goto 21
4: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.annotationCache:Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap;
aload 3
invokevirtual org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
astore 4
start local 4 5: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 19
StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.util.Map java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] top int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: aload 5
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getType:()Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
getstatic org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntryType.SETTER:Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
if_acmpne 13
8: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.context:Ljavax/naming/Context;
aload 1
9: aload 3
aload 5
invokestatic org.apache.catalina.core.DefaultInstanceManager.getMethod:(Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Method;
10: aload 5
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getName:()Ljava/lang/String;
aload 3
11: invokestatic org.apache.catalina.core.DefaultInstanceManager.lookupMethodResource:(Ljavax/naming/Context;Ljava/lang/Object;Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/Class;)V
12: goto 18
StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.util.Map java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
13: aload 5
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getType:()Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
getstatic org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntryType.FIELD:Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntryType;
if_acmpne 18
14: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.context:Ljavax/naming/Context;
aload 1
15: aload 3
aload 5
invokestatic org.apache.catalina.core.DefaultInstanceManager.getField:(Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Field;
16: aload 5
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getName:()Ljava/lang/String;
aload 3
17: invokestatic org.apache.catalina.core.DefaultInstanceManager.lookupFieldResource:(Ljavax/naming/Context;Ljava/lang/Object;Ljava/lang/reflect/Field;Ljava/lang/String;Ljava/lang/Class;)V
end local 5 18: StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.util.Map java.lang.Class org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[] top int int org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
19: iload 6
iload 7
if_icmplt 6
20: aload 3
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 3
end local 4 21: StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.Object java.util.Map java.lang.Class
StackMap stack:
aload 3
ifnonnull 4
22: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 23 1 instance Ljava/lang/Object;
0 23 2 injections Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
3 23 3 clazz Ljava/lang/Class<*>;
5 21 4 annotations [Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
7 18 5 entry Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
Exceptions:
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, javax.naming.NamingException
Signature: (Ljava/lang/Object;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
instance
injections
protected int getAnnotationCacheSize();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.annotationCache:Lorg/apache/tomcat/util/collections/ManagedConcurrentWeakHashMap;
invokevirtual org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
protected java.lang.Class<?> loadClassMaybePrivileged(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: invokestatic org.apache.catalina.security.SecurityUtil.isPackageProtectionEnabled:()Z
ifeq 9
1: new org.apache.catalina.core.DefaultInstanceManager$PrivilegedLoadClass
dup
aload 0
aload 1
aload 2
invokespecial org.apache.catalina.core.DefaultInstanceManager$PrivilegedLoadClass.<init>:(Lorg/apache/catalina/core/DefaultInstanceManager;Ljava/lang/String;Ljava/lang/ClassLoader;)V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.lang.Class
astore 3
start local 3 3: goto 10
end local 3 StackMap locals:
StackMap stack: java.security.PrivilegedActionException
4: astore 4
start local 4 5: aload 4
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
astore 5
start local 5 6: aload 5
instanceof java.lang.ClassNotFoundException
ifeq 8
7: aload 5
checkcast java.lang.ClassNotFoundException
athrow
8: StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.String java.lang.ClassLoader top java.security.PrivilegedActionException java.lang.Throwable
StackMap stack:
new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 9: StackMap locals: org.apache.catalina.core.DefaultInstanceManager java.lang.String java.lang.ClassLoader
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.apache.catalina.core.DefaultInstanceManager.loadClass:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
astore 3
start local 3 10: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 3
invokevirtual org.apache.catalina.core.DefaultInstanceManager.checkAccess:(Ljava/lang/Class;)V
11: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 12 1 className Ljava/lang/String;
0 12 2 classLoader Ljava/lang/ClassLoader;
3 4 3 clazz Ljava/lang/Class<*>;
10 12 3 clazz Ljava/lang/Class<*>;
5 9 4 e Ljava/security/PrivilegedActionException;
6 9 5 t Ljava/lang/Throwable;
Exception table:
from to target type
1 3 4 Class java.security.PrivilegedActionException
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
className final
classLoader final
protected java.lang.Class<?> loadClass(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "org.apache.catalina"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.containerClassLoader:Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.containerClassLoader:Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 3: ldc Lorg/apache/catalina/ContainerServlet;
aload 3
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 8
4: aload 3
5: areturn
end local 3 6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 7: aload 3
invokestatic org.apache.tomcat.util.ExceptionUtils.handleThrowable:(Ljava/lang/Throwable;)V
end local 3 8: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 9 1 className Ljava/lang/String;
0 9 2 classLoader Ljava/lang/ClassLoader;
3 6 3 clazz Ljava/lang/Class<*>;
7 8 3 t Ljava/lang/Throwable;
Exception table:
from to target type
2 5 6 Class java.lang.Throwable
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
className
classLoader
private void checkAccess(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.privileged:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
ldc Lorg/apache/catalina/ContainerServlet;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 11
3: new java.lang.SecurityException
dup
getstatic org.apache.catalina.core.DefaultInstanceManager.sm:Lorg/apache/tomcat/util/res/StringManager;
4: ldc "defaultInstanceManager.restrictedContainerServlet"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
5: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.core.DefaultInstanceManager.restrictedClasses:Ljava/util/Set;
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 10
7: new java.lang.SecurityException
dup
getstatic org.apache.catalina.core.DefaultInstanceManager.sm:Lorg/apache/tomcat/util/res/StringManager;
8: ldc "defaultInstanceManager.restrictedClass"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
9: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 1
11: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/catalina/core/DefaultInstanceManager;
0 13 1 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
clazz
protected static void lookupFieldResource(javax.naming.Context, , java.lang.reflect.Field, java.lang.String, java.lang.Class<?>);
descriptor: (Ljavax/naming/Context;Ljava/lang/Object;Ljava/lang/reflect/Field;Ljava/lang/String;Ljava/lang/Class;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
invokestatic org.apache.catalina.core.DefaultInstanceManager.normalize:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 1: aload 7
ifnull 4
aload 7
invokevirtual java.lang.String.length:()I
ifle 4
2: aload 0
aload 7
invokeinterface javax.naming.Context.lookup:(Ljava/lang/String;)Ljava/lang/Object;
astore 5
start local 5 3: goto 6
end local 5 4: StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Field java.lang.String java.lang.Class top top java.lang.String
StackMap stack:
aload 0
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 "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.reflect.Field.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface javax.naming.Context.lookup:(Ljava/lang/String;)Ljava/lang/Object;
5: astore 5
start local 5 6: StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Field java.lang.String java.lang.Class java.lang.Object top java.lang.String
StackMap stack:
aload 2
dup
astore 8
monitorenter
7: aload 2
invokevirtual java.lang.reflect.Field.isAccessible:()Z
istore 6
start local 6 8: aload 2
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
9: aload 2
aload 1
aload 5
invokevirtual java.lang.reflect.Field.set:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 2
iload 6
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
11: aload 8
monitorexit
12: goto 15
end local 6 StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Field java.lang.String java.lang.Class java.lang.Object top java.lang.String java.lang.reflect.Field
StackMap stack: java.lang.Throwable
13: aload 8
monitorexit
14: athrow
start local 6 15: StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Field java.lang.String java.lang.Class java.lang.Object int java.lang.String
StackMap stack:
return
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 16 0 context Ljavax/naming/Context;
0 16 1 instance Ljava/lang/Object;
0 16 2 field Ljava/lang/reflect/Field;
0 16 3 name Ljava/lang/String;
0 16 4 clazz Ljava/lang/Class<*>;
3 4 5 lookedupResource Ljava/lang/Object;
6 16 5 lookedupResource Ljava/lang/Object;
8 13 6 accessibility Z
15 16 6 accessibility Z
1 16 7 normalizedName Ljava/lang/String;
Exception table:
from to target type
7 12 13 any
13 14 13 any
Exceptions:
throws javax.naming.NamingException, java.lang.IllegalAccessException
Signature: (Ljavax/naming/Context;Ljava/lang/Object;Ljava/lang/reflect/Field;Ljava/lang/String;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
context
instance
field
name
clazz
protected static void lookupMethodResource(javax.naming.Context, , java.lang.reflect.Method, java.lang.String, java.lang.Class<?>);
descriptor: (Ljavax/naming/Context;Ljava/lang/Object;Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/Class;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
invokestatic org.apache.catalina.util.Introspection.isValidSetter:(Ljava/lang/reflect/Method;)Z
ifne 4
1: new java.lang.IllegalArgumentException
dup
2: getstatic org.apache.catalina.core.DefaultInstanceManager.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "defaultInstanceManager.invalidInjection"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 3
invokestatic org.apache.catalina.core.DefaultInstanceManager.normalize:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 5: aload 7
ifnull 8
aload 7
invokevirtual java.lang.String.length:()I
ifle 8
6: aload 0
aload 7
invokeinterface javax.naming.Context.lookup:(Ljava/lang/String;)Ljava/lang/Object;
astore 5
start local 5 7: goto 11
end local 5 8: StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Method java.lang.String java.lang.Class top top java.lang.String
StackMap stack:
aload 0
9: 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 "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokestatic org.apache.catalina.util.Introspection.getPropertyName:(Ljava/lang/reflect/Method;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokeinterface javax.naming.Context.lookup:(Ljava/lang/String;)Ljava/lang/Object;
astore 5
start local 5 11: StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Method java.lang.String java.lang.Class java.lang.Object top java.lang.String
StackMap stack:
aload 2
dup
astore 8
monitorenter
12: aload 2
invokevirtual java.lang.reflect.Method.isAccessible:()Z
istore 6
start local 6 13: aload 2
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
14: aload 2
aload 1
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
15: aload 2
iload 6
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
16: aload 8
monitorexit
17: goto 20
end local 6 StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Method java.lang.String java.lang.Class java.lang.Object top java.lang.String java.lang.reflect.Method
StackMap stack: java.lang.Throwable
18: aload 8
monitorexit
19: athrow
start local 6 20: StackMap locals: javax.naming.Context java.lang.Object java.lang.reflect.Method java.lang.String java.lang.Class java.lang.Object int java.lang.String
StackMap stack:
return
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 21 0 context Ljavax/naming/Context;
0 21 1 instance Ljava/lang/Object;
0 21 2 method Ljava/lang/reflect/Method;
0 21 3 name Ljava/lang/String;
0 21 4 clazz Ljava/lang/Class<*>;
7 8 5 lookedupResource Ljava/lang/Object;
11 21 5 lookedupResource Ljava/lang/Object;
13 18 6 accessibility Z
20 21 6 accessibility Z
5 21 7 normalizedName Ljava/lang/String;
Exception table:
from to target type
12 17 18 any
18 19 18 any
Exceptions:
throws javax.naming.NamingException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Signature: (Ljavax/naming/Context;Ljava/lang/Object;Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
context
instance
method
name
clazz
private static void loadProperties(java.util.Set<java.lang.String>, java.lang.String, java.lang.String, org.apache.juli.logging.Log);
descriptor: (Ljava/util/Set;Ljava/lang/String;Ljava/lang/String;Lorg/apache/juli/logging/Log;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 4
start local 4 1: ldc Lorg/apache/catalina/core/DefaultInstanceManager;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 5
start local 5 2: aconst_null
astore 6
aconst_null
astore 7
3: aload 5
aload 1
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 8
start local 8 4: aload 8
ifnonnull 7
5: aload 3
getstatic org.apache.catalina.core.DefaultInstanceManager.sm:Lorg/apache/tomcat/util/res/StringManager;
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;)V
6: goto 8
7: StackMap locals: java.util.Set java.lang.String java.lang.String org.apache.juli.logging.Log java.util.Properties java.lang.ClassLoader java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 4
aload 8
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
8: StackMap locals:
StackMap stack:
aload 8
ifnull 16
aload 8
invokevirtual java.io.InputStream.close:()V
goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 6
aload 8
ifnull 10
aload 8
invokevirtual java.io.InputStream.close:()V
end local 8 StackMap locals:
StackMap stack:
10: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 7
aload 6
ifnonnull 12
aload 7
astore 6
goto 13
StackMap locals:
StackMap stack:
12: aload 6
aload 7
if_acmpeq 13
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 6
athrow
StackMap locals: java.util.Set java.lang.String java.lang.String org.apache.juli.logging.Log java.util.Properties java.lang.ClassLoader
StackMap stack: java.io.IOException
14: astore 6
start local 6 15: aload 3
getstatic org.apache.catalina.core.DefaultInstanceManager.sm:Lorg/apache/tomcat/util/res/StringManager;
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 6
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 6 16: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.Properties.isEmpty:()Z
ifeq 18
17: return
18: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.Properties.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 27
StackMap locals: java.util.Set java.lang.String java.lang.String org.apache.juli.logging.Log java.util.Properties java.lang.ClassLoader top java.util.Iterator
StackMap stack:
19: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 6
start local 6 20: ldc "restricted"
aload 6
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 23
21: aload 0
aload 6
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
22: goto 27
23: StackMap locals: java.util.Set java.lang.String java.lang.String org.apache.juli.logging.Log java.util.Properties java.lang.ClassLoader java.util.Map$Entry java.util.Iterator
StackMap stack:
aload 3
getstatic org.apache.catalina.core.DefaultInstanceManager.sm:Lorg/apache/tomcat/util/res/StringManager;
24: ldc "defaultInstanceManager.restrictedWrongValue"
iconst_3
anewarray java.lang.Object
dup
iconst_0
25: aload 1
aastore
dup
iconst_1
aload 6
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
dup
iconst_2
aload 6
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
aastore
26: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
end local 6 27: StackMap locals: java.util.Set java.lang.String java.lang.String org.apache.juli.logging.Log java.util.Properties java.lang.ClassLoader top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
28: return
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 29 0 classNames Ljava/util/Set<Ljava/lang/String;>;
0 29 1 resourceName Ljava/lang/String;
0 29 2 messageKey Ljava/lang/String;
0 29 3 log Lorg/apache/juli/logging/Log;
1 29 4 properties Ljava/util/Properties;
2 29 5 cl Ljava/lang/ClassLoader;
4 10 8 is Ljava/io/InputStream;
15 16 6 ioe Ljava/io/IOException;
20 27 6 e Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;
Exception table:
from to target type
4 8 9 any
3 11 11 any
2 14 14 Class java.io.IOException
Signature: (Ljava/util/Set<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Lorg/apache/juli/logging/Log;)V
MethodParameters:
Name Flags
classNames
resourceName
messageKey
log
private static java.lang.String normalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 2
aload 0
ldc "java:comp/env/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
bipush 14
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 jndiName Ljava/lang/String;
MethodParameters:
Name Flags
jndiName
private static java.lang.reflect.Method getMethod(java.lang.Class<?>, org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry);
descriptor: (Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Method;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: getstatic org.apache.catalina.Globals.IS_SECURITY_ENABLED:Z
ifeq 4
2: new org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetMethod
dup
aload 0
aload 1
invokespecial org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetMethod.<init>:(Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.reflect.Method
astore 2
3: goto 9
4: StackMap locals: java.lang.reflect.Method
StackMap stack:
aload 0
5: aload 1
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getAccessibleObjectName:()Ljava/lang/String;
aload 1
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getParamTypes:()[Ljava/lang/Class;
6: invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 2
7: goto 9
StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
8: pop
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 clazz Ljava/lang/Class<*>;
0 10 1 entry Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
1 10 2 result Ljava/lang/reflect/Method;
Exception table:
from to target type
4 7 8 Class java.lang.NoSuchMethodException
Signature: (Ljava/lang/Class<*>;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
clazz final
entry final
private static java.lang.reflect.Field getField(java.lang.Class<?>, org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry);
descriptor: (Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Field;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: getstatic org.apache.catalina.Globals.IS_SECURITY_ENABLED:Z
ifeq 4
2: new org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetField
dup
aload 0
aload 1
invokespecial org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetField.<init>:(Ljava/lang/Class;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.reflect.Field
astore 2
3: goto 7
4: StackMap locals: java.lang.reflect.Field
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry.getAccessibleObjectName:()Ljava/lang/String;
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 2
5: goto 7
StackMap locals:
StackMap stack: java.lang.NoSuchFieldException
6: pop
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 clazz Ljava/lang/Class<*>;
0 8 1 entry Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;
1 8 2 result Ljava/lang/reflect/Field;
Exception table:
from to target type
4 5 6 Class java.lang.NoSuchFieldException
Signature: (Ljava/lang/Class<*>;Lorg/apache/catalina/core/DefaultInstanceManager$AnnotationCacheEntry;)Ljava/lang/reflect/Field;
MethodParameters:
Name Flags
clazz final
entry final
private static java.lang.reflect.Method findPostConstruct(java.lang.reflect.Method, java.lang.String, java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
1: aload 1
aload 2
ldc Ljavax/annotation/PostConstruct;
2: invokestatic org.apache.catalina.core.DefaultInstanceManager.findLifecycleCallback:(Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 currentPostConstruct Ljava/lang/reflect/Method;
0 3 1 postConstructFromXml Ljava/lang/String;
0 3 2 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
currentPostConstruct
postConstructFromXml
method
private static java.lang.reflect.Method findPreDestroy(java.lang.reflect.Method, java.lang.String, java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
1: aload 1
aload 2
ldc Ljavax/annotation/PreDestroy;
2: invokestatic org.apache.catalina.core.DefaultInstanceManager.findLifecycleCallback:(Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 currentPreDestroy Ljava/lang/reflect/Method;
0 3 1 preDestroyFromXml Ljava/lang/String;
0 3 2 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
currentPreDestroy
preDestroyFromXml
method
private static java.lang.reflect.Method findLifecycleCallback(java.lang.reflect.Method, java.lang.String, java.lang.reflect.Method, java.lang.Class<? extends java.lang.annotation.Annotation>);
descriptor: (Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
astore 4
start local 4 1: aload 1
ifnull 9
2: aload 2
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
3: aload 2
invokestatic org.apache.catalina.util.Introspection.isValidLifecycleCallback:(Ljava/lang/reflect/Method;)Z
ifne 7
4: new java.lang.IllegalArgumentException
dup
5: new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " annotation"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.reflect.Method
StackMap stack:
aload 2
astore 4
8: goto 15
9: StackMap locals:
StackMap stack:
aload 2
aload 3
invokevirtual java.lang.reflect.Method.isAnnotationPresent:(Ljava/lang/Class;)Z
ifeq 15
10: aload 0
ifnonnull 11
aload 2
invokestatic org.apache.catalina.util.Introspection.isValidLifecycleCallback:(Ljava/lang/reflect/Method;)Z
ifne 14
11: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
12: new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " annotation"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 2
astore 4
15: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 currentMethod Ljava/lang/reflect/Method;
0 16 1 methodNameFromXml Ljava/lang/String;
0 16 2 method Ljava/lang/reflect/Method;
0 16 3 annotation Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
1 16 4 result Ljava/lang/reflect/Method;
Signature: (Ljava/lang/reflect/Method;Ljava/lang/String;Ljava/lang/reflect/Method;Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
currentMethod
methodNameFromXml
method
annotation
}
SourceFile: "DefaultInstanceManager.java"
NestMembers:
org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntryType org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetField org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetMethod org.apache.catalina.core.DefaultInstanceManager$PrivilegedLoadClass
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
private final AnnotationCacheEntry = org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntry of org.apache.catalina.core.DefaultInstanceManager
private final AnnotationCacheEntryType = org.apache.catalina.core.DefaultInstanceManager$AnnotationCacheEntryType of org.apache.catalina.core.DefaultInstanceManager
private PrivilegedGetField = org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetField of org.apache.catalina.core.DefaultInstanceManager
private PrivilegedGetMethod = org.apache.catalina.core.DefaultInstanceManager$PrivilegedGetMethod of org.apache.catalina.core.DefaultInstanceManager
private PrivilegedLoadClass = org.apache.catalina.core.DefaultInstanceManager$PrivilegedLoadClass of org.apache.catalina.core.DefaultInstanceManager