public interface LifecycleStrategy
Startable,
Disposable| Modifier and Type | Method and Description |
|---|---|
void |
dispose(java.lang.Object component)
Invoke the "dispose" method on the component instance if this is disposable.
|
boolean |
hasLifecycle(java.lang.Class type)
Test if a component instance has a lifecycle.
|
void |
start(java.lang.Object component)
Invoke the "start" method on the component instance if this is startable.
|
void |
stop(java.lang.Object component)
Invoke the "stop" method on the component instance if this is stoppable.
|
void start(java.lang.Object component)
component - the instance of the component to startvoid stop(java.lang.Object component)
component - the instance of the component to stopvoid dispose(java.lang.Object component)
component - the instance of the component to disposeboolean hasLifecycle(java.lang.Class type)
type - the component's typetrue if the component has a lifecycle