adds an instance with a start and/or close method to the lifecycle at stage.normal . if the lifecycle has already been started , it throws an ise concode_field_sep Stage currStage concode_elem_sep AtomicBoolean started concode_elem_sep Logger log concode_elem_sep Logger log concode_elem_sep Method stopMethod concode_elem_sep Map<Stage,CopyOnWriteArrayList<Handler>> handlers concode_elem_sep Method startMethod concode_elem_sep AtomicBoolean shutdownHookRegistered concode_elem_sep Logger log concode_elem_sep Object o concode_field_sep void addHandler concode_elem_sep void addHandler concode_elem_sep List<Stage> stagesOrdered concode_elem_sep void stop concode_elem_sep void stop concode_elem_sep void stop concode_elem_sep void stop concode_elem_sep T addMaybeStartManagedInstance concode_elem_sep T addMaybeStartManagedInstance concode_elem_sep void addMaybeStartHandler concode_elem_sep void addMaybeStartHandler concode_elem_sep T addMaybeStartStartCloseInstance concode_elem_sep T addMaybeStartStartCloseInstance concode_elem_sep void start concode_elem_sep void start concode_elem_sep void start concode_elem_sep void start concode_elem_sep T addManagedInstance concode_elem_sep T addManagedInstance concode_elem_sep void ensureShutdownHook concode_elem_sep void join concode_elem_sep boolean isStarted
T function ( T arg0 ) { addHandler ( new StartCloseHandler ( arg0 ) ) ; return arg0 ; }