public class org.springframework.boot.availability.ApplicationAvailabilityBean implements org.springframework.boot.availability.ApplicationAvailability, org.springframework.context.ApplicationListener<org.springframework.boot.availability.AvailabilityChangeEvent<?>>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.availability.ApplicationAvailabilityBean
super_class: java.lang.Object
{
private final java.util.Map<java.lang.Class<? extends org.springframework.boot.availability.AvailabilityState>, org.springframework.boot.availability.AvailabilityChangeEvent<?>> events;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<+Lorg/springframework/boot/availability/AvailabilityState;>;Lorg/springframework/boot/availability/AvailabilityChangeEvent<*>;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.springframework.boot.availability.ApplicationAvailabilityBean.events:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/availability/ApplicationAvailabilityBean;
public <S extends org.springframework.boot.availability.AvailabilityState> S getState(java.lang.Class<S>, );
descriptor: (Ljava/lang/Class;Lorg/springframework/boot/availability/AvailabilityState;)Lorg/springframework/boot/availability/AvailabilityState;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "StateType must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 2
ldc "DefaultState must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
invokevirtual org.springframework.boot.availability.ApplicationAvailabilityBean.getState:(Ljava/lang/Class;)Lorg/springframework/boot/availability/AvailabilityState;
astore 3
start local 3 3: aload 3
ifnull 4
aload 3
goto 5
StackMap locals: org.springframework.boot.availability.AvailabilityState
StackMap stack:
4: aload 2
StackMap locals:
StackMap stack: org.springframework.boot.availability.AvailabilityState
5: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/boot/availability/ApplicationAvailabilityBean;
0 6 1 stateType Ljava/lang/Class<TS;>;
0 6 2 defaultState TS;
3 6 3 state TS;
Signature: <S::Lorg/springframework/boot/availability/AvailabilityState;>(Ljava/lang/Class<TS;>;TS;)TS;
MethodParameters:
Name Flags
stateType
defaultState
public <S extends org.springframework.boot.availability.AvailabilityState> S getState(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Lorg/springframework/boot/availability/AvailabilityState;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.boot.availability.ApplicationAvailabilityBean.getLastChangeEvent:(Ljava/lang/Class;)Lorg/springframework/boot/availability/AvailabilityChangeEvent;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual org.springframework.boot.availability.AvailabilityChangeEvent.getState:()Lorg/springframework/boot/availability/AvailabilityState;
goto 3
StackMap locals: org.springframework.boot.availability.AvailabilityChangeEvent
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: org.springframework.boot.availability.AvailabilityState
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/availability/ApplicationAvailabilityBean;
0 4 1 stateType Ljava/lang/Class<TS;>;
1 4 2 event Lorg/springframework/boot/availability/AvailabilityChangeEvent<TS;>;
Signature: <S::Lorg/springframework/boot/availability/AvailabilityState;>(Ljava/lang/Class<TS;>;)TS;
MethodParameters:
Name Flags
stateType
public <S extends org.springframework.boot.availability.AvailabilityState> org.springframework.boot.availability.AvailabilityChangeEvent<S> getLastChangeEvent(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Lorg/springframework/boot/availability/AvailabilityChangeEvent;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.availability.ApplicationAvailabilityBean.events:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.springframework.boot.availability.AvailabilityChangeEvent
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/availability/ApplicationAvailabilityBean;
0 1 1 stateType Ljava/lang/Class<TS;>;
Signature: <S::Lorg/springframework/boot/availability/AvailabilityState;>(Ljava/lang/Class<TS;>;)Lorg/springframework/boot/availability/AvailabilityChangeEvent<TS;>;
MethodParameters:
Name Flags
stateType
public void onApplicationEvent(org.springframework.boot.availability.AvailabilityChangeEvent<?>);
descriptor: (Lorg/springframework/boot/availability/AvailabilityChangeEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.boot.availability.AvailabilityChangeEvent.getState:()Lorg/springframework/boot/availability/AvailabilityState;
invokevirtual org.springframework.boot.availability.ApplicationAvailabilityBean.getStateType:(Lorg/springframework/boot/availability/AvailabilityState;)Ljava/lang/Class;
astore 2
start local 2 1: aload 0
getfield org.springframework.boot.availability.ApplicationAvailabilityBean.events:Ljava/util/Map;
aload 2
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/availability/ApplicationAvailabilityBean;
0 3 1 event Lorg/springframework/boot/availability/AvailabilityChangeEvent<*>;
1 3 2 stateType Ljava/lang/Class<+Lorg/springframework/boot/availability/AvailabilityState;>;
Signature: (Lorg/springframework/boot/availability/AvailabilityChangeEvent<*>;)V
MethodParameters:
Name Flags
event
private java.lang.Class<? extends org.springframework.boot.availability.AvailabilityState> getStateType(org.springframework.boot.availability.AvailabilityState);
descriptor: (Lorg/springframework/boot/availability/AvailabilityState;)Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.Enum
ifeq 2
1: aload 1
checkcast java.lang.Enum
invokevirtual java.lang.Enum.getDeclaringClass:()Ljava/lang/Class;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/availability/ApplicationAvailabilityBean;
0 3 1 state Lorg/springframework/boot/availability/AvailabilityState;
Signature: (Lorg/springframework/boot/availability/AvailabilityState;)Ljava/lang/Class<+Lorg/springframework/boot/availability/AvailabilityState;>;
MethodParameters:
Name Flags
state
public void onApplicationEvent(org.springframework.context.ApplicationEvent);
descriptor: (Lorg/springframework/context/ApplicationEvent;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.springframework.boot.availability.AvailabilityChangeEvent
invokevirtual org.springframework.boot.availability.ApplicationAvailabilityBean.onApplicationEvent:(Lorg/springframework/boot/availability/AvailabilityChangeEvent;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/springframework/boot/availability/ApplicationAvailability;Lorg/springframework/context/ApplicationListener<Lorg/springframework/boot/availability/AvailabilityChangeEvent<*>;>;
SourceFile: "ApplicationAvailabilityBean.java"