public class org.springframework.web.servlet.view.XmlViewResolver extends org.springframework.web.servlet.view.AbstractCachingViewResolver implements org.springframework.core.Ordered, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.servlet.view.XmlViewResolver
super_class: org.springframework.web.servlet.view.AbstractCachingViewResolver
{
public static final java.lang.String DEFAULT_LOCATION;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "/WEB-INF/views.xml"
private org.springframework.core.io.Resource location;
descriptor: Lorg/springframework/core/io/Resource;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private org.springframework.context.ConfigurableApplicationContext cachedFactory;
descriptor: Lorg/springframework/context/ConfigurableApplicationContext;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private int order;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.web.servlet.view.AbstractCachingViewResolver.<init>:()V
1: aload 0
ldc 2147483647
putfield org.springframework.web.servlet.view.XmlViewResolver.order:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
public void setLocation(org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.web.servlet.view.XmlViewResolver.location:Lorg/springframework/core/io/Resource;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
0 2 1 location Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
location
public void setOrder(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.web.servlet.view.XmlViewResolver.order:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
0 2 1 order I
MethodParameters:
Name Flags
order
public int getOrder();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.XmlViewResolver.order:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.web.servlet.view.XmlViewResolver.isCache:()Z
ifeq 2
1: aload 0
invokevirtual org.springframework.web.servlet.view.XmlViewResolver.initFactory:()Lorg/springframework/beans/factory/BeanFactory;
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
Exceptions:
throws org.springframework.beans.BeansException
protected java.lang.Object getCacheKey(java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
0 1 1 viewName Ljava/lang/String;
0 1 2 locale Ljava/util/Locale;
MethodParameters:
Name Flags
viewName
locale
protected org.springframework.web.servlet.View loadView(java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/String;Ljava/util/Locale;)Lorg/springframework/web/servlet/View;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.springframework.web.servlet.view.XmlViewResolver.initFactory:()Lorg/springframework/beans/factory/BeanFactory;
astore 3
start local 3 1: aload 3
aload 1
ldc Lorg/springframework/web/servlet/View;
invokeinterface org.springframework.beans.factory.BeanFactory.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.springframework.web.servlet.View
2: areturn
3: StackMap locals: org.springframework.web.servlet.view.XmlViewResolver java.lang.String java.util.Locale org.springframework.beans.factory.BeanFactory
StackMap stack: org.springframework.beans.factory.NoSuchBeanDefinitionException
pop
4: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
0 5 1 viewName Ljava/lang/String;
0 5 2 locale Ljava/util/Locale;
1 5 3 factory Lorg/springframework/beans/factory/BeanFactory;
Exception table:
from to target type
1 2 3 Class org.springframework.beans.factory.NoSuchBeanDefinitionException
Exceptions:
throws org.springframework.beans.BeansException
MethodParameters:
Name Flags
viewName
locale
protected synchronized org.springframework.beans.factory.BeanFactory initFactory();
descriptor: ()Lorg/springframework/beans/factory/BeanFactory;
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.XmlViewResolver.cachedFactory:Lorg/springframework/context/ConfigurableApplicationContext;
ifnull 2
1: aload 0
getfield org.springframework.web.servlet.view.XmlViewResolver.cachedFactory:Lorg/springframework/context/ConfigurableApplicationContext;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.springframework.web.servlet.view.XmlViewResolver.obtainApplicationContext:()Lorg/springframework/context/ApplicationContext;
astore 1
start local 1 3: aload 0
getfield org.springframework.web.servlet.view.XmlViewResolver.location:Lorg/springframework/core/io/Resource;
astore 2
start local 2 4: aload 2
ifnonnull 6
5: aload 1
ldc "/WEB-INF/views.xml"
invokeinterface org.springframework.context.ApplicationContext.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
astore 2
6: StackMap locals: org.springframework.context.ApplicationContext org.springframework.core.io.Resource
StackMap stack:
new org.springframework.web.context.support.GenericWebApplicationContext
dup
invokespecial org.springframework.web.context.support.GenericWebApplicationContext.<init>:()V
astore 3
start local 3 7: aload 3
aload 1
invokevirtual org.springframework.web.context.support.GenericWebApplicationContext.setParent:(Lorg/springframework/context/ApplicationContext;)V
8: aload 3
aload 0
invokevirtual org.springframework.web.servlet.view.XmlViewResolver.getServletContext:()Ljavax/servlet/ServletContext;
invokevirtual org.springframework.web.context.support.GenericWebApplicationContext.setServletContext:(Ljavax/servlet/ServletContext;)V
9: new org.springframework.beans.factory.xml.XmlBeanDefinitionReader
dup
aload 3
invokespecial org.springframework.beans.factory.xml.XmlBeanDefinitionReader.<init>:(Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)V
astore 4
start local 4 10: aload 4
aload 1
invokeinterface org.springframework.context.ApplicationContext.getEnvironment:()Lorg/springframework/core/env/Environment;
invokevirtual org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment:(Lorg/springframework/core/env/Environment;)V
11: aload 4
new org.springframework.beans.factory.xml.ResourceEntityResolver
dup
aload 1
invokespecial org.springframework.beans.factory.xml.ResourceEntityResolver.<init>:(Lorg/springframework/core/io/ResourceLoader;)V
invokevirtual org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEntityResolver:(Lorg/xml/sax/EntityResolver;)V
12: aload 4
aload 2
invokevirtual org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions:(Lorg/springframework/core/io/Resource;)I
pop
13: aload 3
invokevirtual org.springframework.web.context.support.GenericWebApplicationContext.refresh:()V
14: aload 0
invokevirtual org.springframework.web.servlet.view.XmlViewResolver.isCache:()Z
ifeq 16
15: aload 0
aload 3
putfield org.springframework.web.servlet.view.XmlViewResolver.cachedFactory:Lorg/springframework/context/ConfigurableApplicationContext;
16: StackMap locals: org.springframework.web.context.support.GenericWebApplicationContext org.springframework.beans.factory.xml.XmlBeanDefinitionReader
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
3 17 1 applicationContext Lorg/springframework/context/ApplicationContext;
4 17 2 actualLocation Lorg/springframework/core/io/Resource;
7 17 3 factory Lorg/springframework/web/context/support/GenericWebApplicationContext;
10 17 4 reader Lorg/springframework/beans/factory/xml/XmlBeanDefinitionReader;
Exceptions:
throws org.springframework.beans.BeansException
public void destroy();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.XmlViewResolver.cachedFactory:Lorg/springframework/context/ConfigurableApplicationContext;
ifnull 2
1: aload 0
getfield org.springframework.web.servlet.view.XmlViewResolver.cachedFactory:Lorg/springframework/context/ConfigurableApplicationContext;
invokeinterface org.springframework.context.ConfigurableApplicationContext.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/view/XmlViewResolver;
Exceptions:
throws org.springframework.beans.BeansException
}
SourceFile: "XmlViewResolver.java"