public interface PluginStateComponent extends PluginComponent
PluginStateComponent extends PluginComponent to define an interface for plugin
components that maintain PluginState.| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Invoked to set the state of
PluginStateComponent to be destroyed. |
LifecycleState |
getLifecycleState()
Gets the current
LifecycleState of this PluginStateComponent. |
PluginState |
getState()
Gets the current state of this
PluginStateComponent. |
boolean |
isDestroyed()
Tests if destroyed.
|
boolean |
isPaused()
Tests if paused.
|
boolean |
isRestarted()
Tests if restarted.
|
boolean |
isResumed()
Tests if paused.
|
boolean |
isStarted()
Tests if started.
|
boolean |
isStopped()
Tests if stopped.
|
void |
pause()
Invoked to pause this
PluginStateComponent. |
void |
restart()
Invoked to restart this
PluginStateComponent. |
void |
resume()
Invoked to resume this
PluginStateComponent. |
void |
start()
Invoked to start this
PluginStateComponent without parameters. |
void |
start(Params params)
Invoked to start the
PluginStateComponent using the given parameters. |
void |
stop()
Invoked to set the state of
PluginStateComponent to be stopped. |
onPlugged, onPluginPlugged, onPluginUnplugged, onUnpluggedLifecycleState getLifecycleState()
LifecycleState of this PluginStateComponent.LifecycleState.PluginState getState()
PluginStateComponent.PluginState.void pause()
PluginStateComponent.void resume()
PluginStateComponent.void restart()
PluginStateComponent.void start()
PluginStateComponent without parameters.void start(Params params)
PluginStateComponent using the given parameters.params - A Params. May not be null.void stop()
PluginStateComponent to be stopped. A stopped
PluginStateComponent is unplugged from PluginBus.void destroy()
PluginStateComponent to be destroyed. This method is
automatically invoked for a stopped PluginStateComponent.boolean isPaused()
boolean.boolean isRestarted()
boolean.boolean isResumed()
boolean.boolean isStarted()
boolean.boolean isStopped()
boolean.boolean isDestroyed()
boolean.