public class org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver implements org.springframework.beans.factory.xml.NamespaceHandlerResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
super_class: java.lang.Object
{
public static final java.lang.String DEFAULT_HANDLER_MAPPINGS_LOCATION;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "META-INF/spring.handlers"
protected final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final java.lang.String handlerMappingsLocation;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.util.Map<java.lang.String, java.lang.Object> handlerMappings;
descriptor: Ljava/util/Map;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
ldc "META-INF/spring.handlers"
invokespecial org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>:(Ljava/lang/ClassLoader;Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/beans/factory/xml/DefaultNamespaceHandlerResolver;
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "META-INF/spring.handlers"
invokespecial org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>:(Ljava/lang/ClassLoader;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/beans/factory/xml/DefaultNamespaceHandlerResolver;
0 2 1 classLoader Ljava/lang/ClassLoader;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
classLoader
public void <init>(java.lang.ClassLoader, java.lang.String);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/String;)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
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.logger:Lorg/apache/commons/logging/Log;
2: aload 2
ldc "Handler mappings location must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 0
aload 1
ifnull 4
aload 1
goto 5
StackMap locals: org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver java.lang.ClassLoader java.lang.String
StackMap stack: org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
4: invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
StackMap locals: org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver java.lang.ClassLoader java.lang.String
StackMap stack: org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver java.lang.ClassLoader
5: putfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.classLoader:Ljava/lang/ClassLoader;
6: aload 0
aload 2
putfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.handlerMappingsLocation:Ljava/lang/String;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/beans/factory/xml/DefaultNamespaceHandlerResolver;
0 8 1 classLoader Ljava/lang/ClassLoader;
0 8 2 handlerMappingsLocation Ljava/lang/String;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
classLoader
handlerMappingsLocation
public org.springframework.beans.factory.xml.NamespaceHandler resolve(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/beans/factory/xml/NamespaceHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.getHandlerMappings:()Ljava/util/Map;
astore 2
start local 2 1: aload 2
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 2: aload 3
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: java.util.Map java.lang.Object
StackMap stack:
aload 3
instanceof org.springframework.beans.factory.xml.NamespaceHandler
ifeq 6
5: aload 3
checkcast org.springframework.beans.factory.xml.NamespaceHandler
areturn
6: StackMap locals:
StackMap stack:
aload 3
checkcast java.lang.String
astore 4
start local 4 7: aload 4
aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.classLoader:Ljava/lang/ClassLoader;
invokestatic org.springframework.util.ClassUtils.forName:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
astore 5
start local 5 8: ldc Lorg/springframework/beans/factory/xml/NamespaceHandler;
aload 5
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 12
9: new org.springframework.beans.FatalBeanException
dup
new java.lang.StringBuilder
dup
ldc "Class ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] for namespace ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc "] does not implement the ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc Lorg/springframework/beans/factory/xml/NamespaceHandler;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] interface"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial org.springframework.beans.FatalBeanException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: java.lang.String java.lang.Class
StackMap stack:
aload 5
invokestatic org.springframework.beans.BeanUtils.instantiateClass:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.springframework.beans.factory.xml.NamespaceHandler
astore 6
start local 6 13: aload 6
invokeinterface org.springframework.beans.factory.xml.NamespaceHandler.init:()V
14: aload 2
aload 1
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: aload 6
16: areturn
end local 6 end local 5 17: StackMap locals: org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver java.lang.String java.util.Map java.lang.Object java.lang.String
StackMap stack: java.lang.ClassNotFoundException
astore 5
start local 5 18: new org.springframework.beans.FatalBeanException
dup
new java.lang.StringBuilder
dup
ldc "Could not find NamespaceHandler class ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: ldc "] for namespace ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
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;
aload 5
20: invokespecial org.springframework.beans.FatalBeanException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 21: StackMap locals:
StackMap stack: java.lang.LinkageError
astore 5
start local 5 22: new org.springframework.beans.FatalBeanException
dup
new java.lang.StringBuilder
dup
ldc "Unresolvable class definition for NamespaceHandler class ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
23: aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] for namespace ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
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;
aload 5
24: invokespecial org.springframework.beans.FatalBeanException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
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 25 0 this Lorg/springframework/beans/factory/xml/DefaultNamespaceHandlerResolver;
0 25 1 namespaceUri Ljava/lang/String;
1 25 2 handlerMappings Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
2 25 3 handlerOrClassName Ljava/lang/Object;
7 25 4 className Ljava/lang/String;
8 17 5 handlerClass Ljava/lang/Class<*>;
13 17 6 namespaceHandler Lorg/springframework/beans/factory/xml/NamespaceHandler;
18 21 5 ex Ljava/lang/ClassNotFoundException;
22 25 5 err Ljava/lang/LinkageError;
Exception table:
from to target type
7 16 17 Class java.lang.ClassNotFoundException
7 16 21 Class java.lang.LinkageError
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
namespaceUri
private java.util.Map<java.lang.String, java.lang.Object> getHandlerMappings();
descriptor: ()Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.handlerMappings:Ljava/util/Map;
astore 1
start local 1 1: aload 1
ifnonnull 23
2: aload 0
dup
astore 2
monitorenter
3: aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.handlerMappings:Ljava/util/Map;
astore 1
4: aload 1
ifnonnull 19
5: aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isTraceEnabled:()Z
ifeq 7
6: aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Loading NamespaceHandler mappings from ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.handlerMappingsLocation: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;
invokeinterface org.apache.commons.logging.Log.trace:(Ljava/lang/Object;)V
7: StackMap locals: java.util.Map org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
StackMap stack:
aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.handlerMappingsLocation:Ljava/lang/String;
aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.classLoader:Ljava/lang/ClassLoader;
invokestatic org.springframework.core.io.support.PropertiesLoaderUtils.loadAllProperties:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/Properties;
8: astore 3
start local 3 9: aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isTraceEnabled:()Z
ifeq 11
10: aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Loaded NamespaceHandler mappings: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.trace:(Ljava/lang/Object;)V
11: StackMap locals: java.util.Properties
StackMap stack:
new java.util.concurrent.ConcurrentHashMap
dup
aload 3
invokevirtual java.util.Properties.size:()I
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
astore 1
12: aload 3
aload 1
invokestatic org.springframework.util.CollectionUtils.mergePropertiesIntoMap:(Ljava/util/Properties;Ljava/util/Map;)V
13: aload 0
aload 1
putfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.handlerMappings:Ljava/util/Map;
end local 3 14: goto 19
15: StackMap locals: org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver java.util.Map org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
StackMap stack: java.io.IOException
astore 3
start local 3 16: new java.lang.IllegalStateException
dup
17: new java.lang.StringBuilder
dup
ldc "Unable to load NamespaceHandler mappings from location ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.handlerMappingsLocation: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;
aload 3
18: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 19: StackMap locals:
StackMap stack:
aload 2
monitorexit
20: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 2
monitorexit
22: athrow
23: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/springframework/beans/factory/xml/DefaultNamespaceHandlerResolver;
1 24 1 handlerMappings Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
9 14 3 mappings Ljava/util/Properties;
16 19 3 ex Ljava/io/IOException;
Exception table:
from to target type
7 14 15 Class java.io.IOException
3 20 21 any
21 22 21 any
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "NamespaceHandlerResolver using mappings "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.getHandlerMappings:()Ljava/util/Map;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/beans/factory/xml/DefaultNamespaceHandlerResolver;
}
SourceFile: "DefaultNamespaceHandlerResolver.java"