Package org.picocontainer
Interface ComponentLifecycle<T>
-
- All Known Subinterfaces:
Behavior<T>
- All Known Implementing Classes:
AbstractBehavior,Automated,Cached,Decorated,FieldDecorated,Guarded,HiddenImplementation,InstanceAdapter,Intercepted,Locked,PropertyApplicator,Stored,Synchronized,ThreadCached
public interface ComponentLifecycle<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancomponentHasLifecycle()Test if a component honors a lifecycle.voiddispose(PicoContainer container)Invoke the "dispose" method on the component.booleanisStarted()voidstart(PicoContainer container)Invoke the "start" method on the component.voidstop(PicoContainer container)Invoke the "stop" method on the component.
-
-
-
Method Detail
-
start
void start(PicoContainer container)
Invoke the "start" method on the component.- Parameters:
container- the container to "start" the component
-
stop
void stop(PicoContainer container)
Invoke the "stop" method on the component.- Parameters:
container- the container to "stop" the component
-
dispose
void dispose(PicoContainer container)
Invoke the "dispose" method on the component.- Parameters:
container- the container to "dispose" the component
-
componentHasLifecycle
boolean componentHasLifecycle()
Test if a component honors a lifecycle.- Returns:
trueif the component has a lifecycle
-
isStarted
boolean isStarted()
-
-