Package org.picocontainer
Interface Startable
-
- All Known Subinterfaces:
Container,Interceptor
- All Known Implementing Classes:
AbstractContainer,AbstractInterceptor,CachingContainer,ConcurrentContainer,ExoContainer,ExtendedPropertyConfigurator,JVMRuntimeInfoImpl,LogConfigurationInitializer,ManageableContainer,PortalContainer,PortalContainerConfig,PropertyConfigurator,PropertyManagerManaged,RootContainer,StandaloneContainer
public interface StartableAn interface which is implemented by components that can be started and stopped. The
start()must be called at the begin of the component lifecycle. It can be called again only after a call tostop(). Thestop()method must be called at the end of the component lifecycle, and can further be called after everystart(). If a component implements theDisposableinterface as well,stop()should be called beforeDisposable.dispose().
For more advanced and pluggable lifecycle support, see the functionality offered by the nanocontainer-proxytoys subproject.
- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstart()Start this component.voidstop()Stop this component.
-
-
-
Method Detail
-
start
void start()
Start this component. Called initially at the begin of the lifecycle. It can be called again after a stop.
-
stop
void stop()
Stop this component. Called near the end of the lifecycle. It can be called again after a further start. ImplementDisposableif you need a single call at the definite end of the lifecycle.
-
-