随笔-295  评论-26  文章-1  trackbacks-0
public interface Lifecycle
		

Interface defining methods for start/stop lifecycle control. The typical use case for this is to control asynchronous processing.

Can be implemented by both components (typically a Spring bean defined in a Spring BeanFactory) and containers (typically a Spring ApplicationContext). Containers will propagate start/stop signals to all components that apply.

Can be used for direct invocations or for management operations via JMX. In the latter case, the MBeanExporter will typically be defined with an InterfaceBasedMBeanInfoAssembler, restricting the visibility of activity-controlled components to the Lifecycle interface.

Since:
2.0
Author:
Juergen Hoeller
See Also:
ConfigurableApplicationContext , AbstractMessageListenerContainer, SchedulerFactoryBean

Method Summary
 boolean isRunning ()
          Check whether this component is currently running.
 void start ()
          Start this component.
 void stop ()
          Stop this component.
 

大盘预测 国富论
posted on 2007-08-28 13:49 华梦行 阅读(146) 评论(0)  编辑  收藏 所属分类: Spring

只有注册用户登录后才能发表评论。


网站导航: