public class org.springframework.beans.factory.xml.PluggableSchemaResolver implements org.xml.sax.EntityResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.factory.xml.PluggableSchemaResolver
super_class: java.lang.Object
{
public static final java.lang.String DEFAULT_SCHEMA_MAPPINGS_LOCATION;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "META-INF/spring.schemas"
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, 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 schemaMappingsLocation;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.util.Map<java.lang.String, java.lang.String> schemaMappings;
descriptor: Ljava/util/Map;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/beans/factory/xml/PluggableSchemaResolver;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.springframework.beans.factory.xml.PluggableSchemaResolver.classLoader:Ljava/lang/ClassLoader;
2: aload 0
ldc "META-INF/spring.schemas"
putfield org.springframework.beans.factory.xml.PluggableSchemaResolver.schemaMappingsLocation:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/beans/factory/xml/PluggableSchemaResolver;
0 4 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 2
ldc "'schemaMappingsLocation' must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.beans.factory.xml.PluggableSchemaResolver.classLoader:Ljava/lang/ClassLoader;
3: aload 0
aload 2
putfield org.springframework.beans.factory.xml.PluggableSchemaResolver.schemaMappingsLocation:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/beans/factory/xml/PluggableSchemaResolver;
0 5 1 classLoader Ljava/lang/ClassLoader;
0 5 2 schemaMappingsLocation Ljava/lang/String;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
classLoader
schemaMappingsLocation
public org.xml.sax.InputSource resolveEntity(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isTraceEnabled:()Z
ifeq 4
1: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Trying to resolve XML entity with public id ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc "] and system id ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
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;
3: invokeinterface org.apache.commons.logging.Log.trace:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
aload 2
ifnull 20
5: aload 0
invokevirtual org.springframework.beans.factory.xml.PluggableSchemaResolver.getSchemaMappings:()Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: aload 3
ifnonnull 8
aload 2
ldc "https:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
7: aload 0
invokevirtual org.springframework.beans.factory.xml.PluggableSchemaResolver.getSchemaMappings:()Ljava/util/Map;
new java.lang.StringBuilder
dup
ldc "http:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
bipush 6
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
8: StackMap locals: java.lang.String
StackMap stack:
aload 3
ifnull 20
9: new org.springframework.core.io.ClassPathResource
dup
aload 3
aload 0
getfield org.springframework.beans.factory.xml.PluggableSchemaResolver.classLoader:Ljava/lang/ClassLoader;
invokespecial org.springframework.core.io.ClassPathResource.<init>:(Ljava/lang/String;Ljava/lang/ClassLoader;)V
astore 4
start local 4 10: new org.xml.sax.InputSource
dup
aload 4
invokeinterface org.springframework.core.io.Resource.getInputStream:()Ljava/io/InputStream;
invokespecial org.xml.sax.InputSource.<init>:(Ljava/io/InputStream;)V
astore 5
start local 5 11: aload 5
aload 1
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
12: aload 5
aload 2
invokevirtual org.xml.sax.InputSource.setSystemId:(Ljava/lang/String;)V
13: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isTraceEnabled:()Z
ifeq 15
14: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Found XML schema ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] in classpath: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
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
15: StackMap locals: org.springframework.core.io.Resource org.xml.sax.InputSource
StackMap stack:
aload 5
16: areturn
end local 5 17: StackMap locals: org.springframework.beans.factory.xml.PluggableSchemaResolver java.lang.String java.lang.String java.lang.String org.springframework.core.io.Resource
StackMap stack: java.io.FileNotFoundException
astore 5
start local 5 18: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 20
19: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Could not find XML schema ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 5 end local 4 end local 3 20: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/springframework/beans/factory/xml/PluggableSchemaResolver;
0 21 1 publicId Ljava/lang/String;
0 21 2 systemId Ljava/lang/String;
6 20 3 resourceLocation Ljava/lang/String;
10 20 4 resource Lorg/springframework/core/io/Resource;
11 17 5 source Lorg/xml/sax/InputSource;
18 20 5 ex Ljava/io/FileNotFoundException;
Exception table:
from to target type
10 16 17 Class java.io.FileNotFoundException
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
publicId
systemId
private java.util.Map<java.lang.String, java.lang.String> getSchemaMappings();
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.PluggableSchemaResolver.schemaMappings: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.PluggableSchemaResolver.schemaMappings:Ljava/util/Map;
astore 1
4: aload 1
ifnonnull 19
5: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isTraceEnabled:()Z
ifeq 7
6: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Loading schema mappings from ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.beans.factory.xml.PluggableSchemaResolver.schemaMappingsLocation: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.PluggableSchemaResolver
StackMap stack:
aload 0
getfield org.springframework.beans.factory.xml.PluggableSchemaResolver.schemaMappingsLocation:Ljava/lang/String;
aload 0
getfield org.springframework.beans.factory.xml.PluggableSchemaResolver.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: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isTraceEnabled:()Z
ifeq 11
10: getstatic org.springframework.beans.factory.xml.PluggableSchemaResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Loaded schema 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.PluggableSchemaResolver.schemaMappings:Ljava/util/Map;
end local 3 14: goto 19
15: StackMap locals: org.springframework.beans.factory.xml.PluggableSchemaResolver java.util.Map org.springframework.beans.factory.xml.PluggableSchemaResolver
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 schema mappings from location ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.beans.factory.xml.PluggableSchemaResolver.schemaMappingsLocation: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/PluggableSchemaResolver;
1 24 1 schemaMappings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
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/String;>;
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 "EntityResolver using schema mappings "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.springframework.beans.factory.xml.PluggableSchemaResolver.getSchemaMappings:()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/PluggableSchemaResolver;
}
SourceFile: "PluggableSchemaResolver.java"