public abstract class org.springframework.context.support.ApplicationObjectSupport implements org.springframework.context.ApplicationContextAware
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.context.support.ApplicationObjectSupport
super_class: java.lang.Object
{
protected final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private org.springframework.context.ApplicationContext applicationContext;
descriptor: Lorg/springframework/context/ApplicationContext;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private org.springframework.context.support.MessageSourceAccessor messageSourceAccessor;
descriptor: Lorg/springframework/context/support/MessageSourceAccessor;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 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.context.support.ApplicationObjectSupport.logger:Lorg/apache/commons/logging/Log;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
public final void setApplicationContext(org.springframework.context.ApplicationContext);
descriptor: (Lorg/springframework/context/ApplicationContext;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 4
aload 0
invokevirtual org.springframework.context.support.ApplicationObjectSupport.isContextRequired:()Z
ifne 4
1: aload 0
aconst_null
putfield org.springframework.context.support.ApplicationObjectSupport.applicationContext:Lorg/springframework/context/ApplicationContext;
2: aload 0
aconst_null
putfield org.springframework.context.support.ApplicationObjectSupport.messageSourceAccessor:Lorg/springframework/context/support/MessageSourceAccessor;
3: goto 19
4: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.context.support.ApplicationObjectSupport.applicationContext:Lorg/springframework/context/ApplicationContext;
ifnonnull 13
5: aload 0
invokevirtual org.springframework.context.support.ApplicationObjectSupport.requiredContextClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 9
6: new org.springframework.context.ApplicationContextException
dup
7: new java.lang.StringBuilder
dup
ldc "Invalid application context: needs to be of type ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.springframework.context.support.ApplicationObjectSupport.requiredContextClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()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;
8: invokespecial org.springframework.context.ApplicationContextException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.springframework.context.support.ApplicationObjectSupport.applicationContext:Lorg/springframework/context/ApplicationContext;
10: aload 0
new org.springframework.context.support.MessageSourceAccessor
dup
aload 1
invokespecial org.springframework.context.support.MessageSourceAccessor.<init>:(Lorg/springframework/context/MessageSource;)V
putfield org.springframework.context.support.ApplicationObjectSupport.messageSourceAccessor:Lorg/springframework/context/support/MessageSourceAccessor;
11: aload 0
aload 1
invokevirtual org.springframework.context.support.ApplicationObjectSupport.initApplicationContext:(Lorg/springframework/context/ApplicationContext;)V
12: goto 19
13: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.context.support.ApplicationObjectSupport.applicationContext:Lorg/springframework/context/ApplicationContext;
aload 1
if_acmpeq 19
14: new org.springframework.context.ApplicationContextException
dup
15: new java.lang.StringBuilder
dup
ldc "Cannot reinitialize with different application context: current one is ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
16: aload 0
getfield org.springframework.context.support.ApplicationObjectSupport.applicationContext:Lorg/springframework/context/ApplicationContext;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "], passed-in one is ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: invokespecial org.springframework.context.ApplicationContextException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
0 20 1 context Lorg/springframework/context/ApplicationContext;
Exceptions:
throws org.springframework.beans.BeansException
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
context
protected boolean isContextRequired();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
protected java.lang.Class<?> requiredContextClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Lorg/springframework/context/ApplicationContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
Signature: ()Ljava/lang/Class<*>;
protected void initApplicationContext(org.springframework.context.ApplicationContext);
descriptor: (Lorg/springframework/context/ApplicationContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.context.support.ApplicationObjectSupport.initApplicationContext:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
0 2 1 context Lorg/springframework/context/ApplicationContext;
Exceptions:
throws org.springframework.beans.BeansException
MethodParameters:
Name Flags
context
protected void initApplicationContext();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
Exceptions:
throws org.springframework.beans.BeansException
public final org.springframework.context.ApplicationContext getApplicationContext();
descriptor: ()Lorg/springframework/context/ApplicationContext;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.context.support.ApplicationObjectSupport.applicationContext:Lorg/springframework/context/ApplicationContext;
ifnonnull 4
aload 0
invokevirtual org.springframework.context.support.ApplicationObjectSupport.isContextRequired:()Z
ifeq 4
1: new java.lang.IllegalStateException
dup
2: new java.lang.StringBuilder
dup
ldc "ApplicationObjectSupport instance ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] does not run in an ApplicationContext"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.context.support.ApplicationObjectSupport.applicationContext:Lorg/springframework/context/ApplicationContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
Exceptions:
throws java.lang.IllegalStateException
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
protected final org.springframework.context.ApplicationContext obtainApplicationContext();
descriptor: ()Lorg/springframework/context/ApplicationContext;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.context.support.ApplicationObjectSupport.getApplicationContext:()Lorg/springframework/context/ApplicationContext;
astore 1
start local 1 1: aload 1
ifnull 2
iconst_1
goto 3
StackMap locals: org.springframework.context.ApplicationContext
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "No ApplicationContext"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
1 5 1 applicationContext Lorg/springframework/context/ApplicationContext;
protected final org.springframework.context.support.MessageSourceAccessor getMessageSourceAccessor();
descriptor: ()Lorg/springframework/context/support/MessageSourceAccessor;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.context.support.ApplicationObjectSupport.messageSourceAccessor:Lorg/springframework/context/support/MessageSourceAccessor;
ifnonnull 4
aload 0
invokevirtual org.springframework.context.support.ApplicationObjectSupport.isContextRequired:()Z
ifeq 4
1: new java.lang.IllegalStateException
dup
2: new java.lang.StringBuilder
dup
ldc "ApplicationObjectSupport instance ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] does not run in an ApplicationContext"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.context.support.ApplicationObjectSupport.messageSourceAccessor:Lorg/springframework/context/support/MessageSourceAccessor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/context/support/ApplicationObjectSupport;
Exceptions:
throws java.lang.IllegalStateException
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
}
SourceFile: "ApplicationObjectSupport.java"