接口的使用
cn.taketoday.context.Lifecycle
使用Lifecycle的程序包
-
cn.taketoday.context中Lifecycle的使用
修饰符和类型接口说明interfaceSPI interface to be implemented by most if not all application contexts.interfaceStrategy interface for processing Lifecycle beans within the ApplicationContext.interfaceAn extension of theLifecycleinterface for those objects that require to be started uponApplicationContextrefresh and/or shutdown in a particular order. -
cn.taketoday.context.annotation中Lifecycle的使用
修饰符和类型类说明classStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations. -
cn.taketoday.context.support中Lifecycle的使用
修饰符和类型类说明classAbstract implementation of theApplicationContextinterface.classBase class forApplicationContextimplementations which are supposed to support multiple calls toAbstractApplicationContext.refresh(), creating a new internal bean factory instance every time.classAbstractRefreshableApplicationContextsubclass that adds common handling of specified config locations.classConvenient base class forApplicationContextimplementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader.classStandalone XML application context, taking the context definition files from the class path, interpreting plain paths as class path resource names that include the package path (e.g.classDefault implementation of theLifecycleProcessorstrategy.classStandalone XML application context, taking the context definition files from the file system or from URLs, interpreting plain paths as relative file system locations (e.g.classGeneric ApplicationContext implementation that holds a single internalStandardBeanFactoryinstance and does not assume a specific bean definition format.classConvenient application context with built-in XML support.classStandardApplicationContextlike Spring's AnnotationConfigApplicationContextclassApplicationContextimplementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.返回变量类型为Lifecycle的类型的cn.taketoday.context.support中的方法修饰符和类型方法说明DefaultLifecycleProcessor.getLifecycleBeans()Retrieve all applicable Lifecycle beans: all singletons that have already been created, as well as all SmartLifecycle beans (even if they are marked as lazy-init).参数类型为Lifecycle的cn.taketoday.context.support中的方法