Package org.deepsymmetry.beatlink
Interface LifecycleListener
-
public interface LifecycleListener
The listener interface for receiving updates when a Beat Link component is started or stopped.
Classes that depend on something (like the
DeviceFinder
,VirtualCdj
, orMetadataFinder
) can implement this interface so they know to shut themselves down when the subsystem they are reliant upon has done so.- Author:
- James Elliott
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
started(LifecycleParticipant sender)
Called when the subsystem has started up.void
stopped(LifecycleParticipant sender)
Called when the subsystem has shut down.
-
-
-
Method Detail
-
started
void started(LifecycleParticipant sender)
Called when the subsystem has started up.- Parameters:
sender
- the subsystem reporting this event, in case you want to use a single listener to hear from all of the components you depend on
-
stopped
void stopped(LifecycleParticipant sender)
Called when the subsystem has shut down.- Parameters:
sender
- the subsystem reporting this event, in case you want to use a single listener to hear from all of the components you depend on
-
-