An interface which specifies the lifecycle strategy on the component instance.
Lifecycle strategies are used by component adapters to delegate the lifecycle
operations on the component instances.
author: Paul Hammant author: Peter Royal author: Jörg Schaible author: Mauro Talevi See Also:org.picocontainer.Startable See Also:org.picocontainer.Disposable
Method Summary
void
dispose(Object component) Invoke the "dispose" method on the component instance if this is disposable.
boolean
hasLifecycle(Class> type) Test if a component instance has a lifecycle.
void
start(Object component) Invoke the "start" method on the component instance if this is startable.
void
stop(Object component) Invoke the "stop" method on the component instance if this is stoppable.
Invoke the "dispose" method on the component instance if this is disposable.
It is up to the implementation of the strategy what "dispose" and "disposable" means.
Parameters: component - the instance of the component to dispose
Invoke the "start" method on the component instance if this is startable.
It is up to the implementation of the strategy what "start" and "startable" means.
Parameters: component - the instance of the component to start
Invoke the "stop" method on the component instance if this is stoppable.
It is up to the implementation of the strategy what "stop" and "stoppable" means.
Parameters: component - the instance of the component to stop