public class AbstractPluginStateComponent extends AbstractPluginComponent implements PluginStateComponent
AbstractPluginStateComponent provides an abstract base class for implementing
PluginStateComponents.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPluginStateComponent() |
| 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. |
Params |
getParams() |
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.
|
protected void |
onCreate(Params params) |
protected void |
onDestroy() |
protected void |
onPause() |
protected void |
onRestart() |
protected void |
onResume() |
protected void |
onStart() |
protected void |
onStop() |
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, onUnpluggedgetScope, setScopeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonPlugged, onPluginPlugged, onPluginUnplugged, onUnpluggedprotected Params params
public LifecycleState getLifecycleState()
PluginStateComponentLifecycleState of this PluginStateComponent.getLifecycleState in interface PluginStateComponentLifecycleState.public Params getParams()
public void pause()
PluginStateComponentPluginStateComponent.pause in interface PluginStateComponentpublic void resume()
PluginStateComponentPluginStateComponent.resume in interface PluginStateComponentpublic void restart()
PluginStateComponentPluginStateComponent.restart in interface PluginStateComponentpublic final void start()
PluginStateComponentPluginStateComponent without parameters.start in interface PluginStateComponentpublic final void start(Params params)
PluginStateComponentPluginStateComponent using the given parameters.start in interface PluginStateComponentparams - A Params. May not be null.public void stop()
PluginStateComponentPluginStateComponent to be stopped. A stopped
PluginStateComponent is unplugged from PluginBus.stop in interface PluginStateComponentpublic void destroy()
PluginStateComponentPluginStateComponent to be destroyed. This method is
automatically invoked for a stopped PluginStateComponent.destroy in interface PluginStateComponentpublic PluginState getState()
PluginStateComponentPluginStateComponent.getState in interface PluginStateComponentPluginState.protected void onCreate(Params params)
protected void onStart()
protected void onRestart()
protected void onResume()
protected void onPause()
protected void onStop()
protected void onDestroy()
public boolean isPaused()
PluginStateComponentisPaused in interface PluginStateComponentboolean.public boolean isRestarted()
PluginStateComponentisRestarted in interface PluginStateComponentboolean.public boolean isResumed()
PluginStateComponentisResumed in interface PluginStateComponentboolean.public boolean isStarted()
PluginStateComponentisStarted in interface PluginStateComponentboolean.public boolean isStopped()
PluginStateComponentisStopped in interface PluginStateComponentboolean.public boolean isDestroyed()
PluginStateComponentisDestroyed in interface PluginStateComponentboolean.