com.groupbyinc.flux.common.component.AbstractLifecycleComponent.class Maven / Gradle / Ivy
???? 4 ? ?com/groupbyinc/flux/common/component/AbstractLifecycleComponent 6com/groupbyinc/flux/common/component/AbstractComponent 7com/groupbyinc/flux/common/component/LifecycleComponent AbstractLifecycleComponent.java 4com/groupbyinc/flux/common/component/Lifecycle$State .com/groupbyinc/flux/common/component/Lifecycle
State lifecycle 0Lcom/groupbyinc/flux/common/component/Lifecycle; listeners Ljava/util/List; JLjava/util/List; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
()V
)java/util/concurrent/CopyOnWriteArrayList
this ALcom/groupbyinc/flux/common/component/AbstractLifecycleComponent; settings .Lcom/groupbyinc/flux/common/settings/Settings; B(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/Class;)V $
% customClass Ljava/lang/Class; lifecycleState 8()Lcom/groupbyinc/flux/common/component/Lifecycle$State; state + *
, addLifecycleListener ;(Lcom/groupbyinc/flux/common/component/LifecycleListener;)V java/util/List 0 add (Ljava/lang/Object;)Z 2 3 1 4 listener 8Lcom/groupbyinc/flux/common/component/LifecycleListener; removeLifecycleListener remove 9 3 1 : start canMoveToStarted ()Z = >
? iterator ()Ljava/util/Iterator; A B 1 C java/util/Iterator E hasNext G > F H next ()Ljava/lang/Object; J K F L 6com/groupbyinc/flux/common/component/LifecycleListener N beforeStart P
O Q doStart S
T
moveToStarted V >
W
afterStart Y
O Z stop canMoveToStopped ] >
^
beforeStop `
O a
moveToStopped c >
d doStop f
g afterStop i
O j close java/io/IOException m started o >
p \
r canMoveToClosed t >
u beforeClose w
O x moveToClosed z >
{ doClose }
~ logger !Lorg/apache/logging/log4j/Logger; ? ? ? java/lang/StringBuilder ?
? failed to close ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? java/lang/Class ? getName ()Ljava/lang/String; ? ?
? ? toString ? ?
? ? org/apache/logging/log4j/Logger ? warn *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? ? ?
afterClose ?
O ? e Ljava/io/IOException; Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses!
? ? \ *+? *? Y? ? *? Y? ? ? ? ! " # ? # $ $ ? g *+,? &*? Y? ? *? Y? ? ? ? ! " # ' ( ? ' ( ) * ? 2 *? ? -? ? ! ? , . / ? D *? +? 5 W? ? ! 6 7 ?
1 2 8 / ? D *? +? ; W? ? ! 6 7 ?
6 7 <