class org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver implements org.springframework.util.PropertyPlaceholderHelper$PlaceholderResolver
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver
super_class: java.lang.Object
{
private final java.lang.String text;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javax.servlet.ServletContext servletContext;
descriptor: Ljavax/servlet/ServletContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String, javax.servlet.ServletContext);
descriptor: (Ljava/lang/String;Ljavax/servlet/ServletContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 // org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver this
start local 1 // java.lang.String text
start local 2 // javax.servlet.ServletContext servletContext
0: .line 91
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 92
aload 0 /* this */
aload 1 /* text */
putfield org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver.text:Ljava/lang/String;
2: .line 93
aload 0 /* this */
aload 2 /* servletContext */
putfield org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver.servletContext:Ljavax/servlet/ServletContext;
3: .line 94
return
end local 2 // javax.servlet.ServletContext servletContext
end local 1 // java.lang.String text
end local 0 // org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/util/ServletContextPropertyUtils$ServletContextPlaceholderResolver;
0 4 1 text Ljava/lang/String;
0 4 2 servletContext Ljavax/servlet/ServletContext;
MethodParameters:
Name Flags
text
servletContext
public java.lang.String resolvePlaceholder(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 // org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver this
start local 1 // java.lang.String placeholderName
0: .line 100
aload 0 /* this */
getfield org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver.servletContext:Ljavax/servlet/ServletContext;
aload 1 /* placeholderName */
invokeinterface javax.servlet.ServletContext.getInitParameter:(Ljava/lang/String;)Ljava/lang/String;
astore 2 /* propVal */
start local 2 // java.lang.String propVal
1: .line 101
aload 2 /* propVal */
ifnonnull 5
2: .line 103
aload 1 /* placeholderName */
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2 /* propVal */
3: .line 104
aload 2 /* propVal */
ifnonnull 5
4: .line 106
aload 1 /* placeholderName */
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 2 /* propVal */
5: .line 109
StackMap locals: java.lang.String
StackMap stack:
aload 2 /* propVal */
6: areturn
end local 2 // java.lang.String propVal
7: .line 111
StackMap locals: org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver java.lang.String
StackMap stack: java.lang.Throwable
astore 2 /* ex */
start local 2 // java.lang.Throwable ex
8: .line 112
getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Could not resolve placeholder '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* placeholderName */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' in ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: .line 113
aload 0 /* this */
getfield org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver.text:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] as ServletContext init-parameter or system property: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2 /* ex */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: .line 112
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: .line 114
aconst_null
areturn
end local 2 // java.lang.Throwable ex
end local 1 // java.lang.String placeholderName
end local 0 // org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver this
LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/web/util/ServletContextPropertyUtils$ServletContextPlaceholderResolver;
0 12 1 placeholderName Ljava/lang/String;
1 7 2 propVal Ljava/lang/String;
8 12 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 6 7 Class java.lang.Throwable
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
placeholderName
}
SourceFile: "ServletContextPropertyUtils.java"
NestHost: org.springframework.web.util.ServletContextPropertyUtils
InnerClasses:
public abstract PlaceholderResolver = org.springframework.util.PropertyPlaceholderHelper$PlaceholderResolver of org.springframework.util.PropertyPlaceholderHelper
private ServletContextPlaceholderResolver = org.springframework.web.util.ServletContextPropertyUtils$ServletContextPlaceholderResolver of org.springframework.web.util.ServletContextPropertyUtils