接口的使用
cn.taketoday.context.ApplicationContext
使用ApplicationContext的程序包
程序包
说明
Event System
Support for external configuration properties.
Java 5 annotation for asynchronous method execution.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Framework ApplicationContext
and in particular with Framework's data binding and validation APIs.
-
cn.taketoday.context中ApplicationContext的使用
修饰符和类型接口说明interfaceSPI interface to be implemented by most if not all application contexts.修饰符和类型方法说明ApplicationContext.getParent()Return the parent context, ornullif there is no parent and this is the root of the context hierarchy.参数类型为ApplicationContext的cn.taketoday.context中的方法修饰符和类型方法说明voidConfigurableApplicationContext.setParent(ApplicationContext parent) Set the parent of this application context. -
cn.taketoday.context.annotation中ApplicationContext的使用
修饰符和类型类说明classStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations.限定符构造器说明AnnotationConfigApplicationContext(StandardBeanFactory beanFactory, ApplicationContext parent) ConditionEvaluationContext(ApplicationContext context, BeanDefinitionRegistry registry) ConditionEvaluator(ApplicationContext context, BeanDefinitionRegistry registry) -
cn.taketoday.context.aware中ApplicationContext的使用
修饰符和类型方法说明final ApplicationContextApplicationContextSupport.getApplicationContext()Return the ApplicationContext that this object is associated with.ApplicationContextSupport.obtainApplicationContext()Return the ApplicationContext that this object is associated with.修饰符和类型方法说明protected voidApplicationContextSupport.initApplicationContext(ApplicationContext context) Subclasses can override this for custom initialization behavior.voidApplicationContextAware.setApplicationContext(ApplicationContext applicationContext) Set the ApplicationContext that this object runs in.final voidApplicationContextSupport.setApplicationContext(ApplicationContext context) -
cn.taketoday.context.event中ApplicationContext的使用
修饰符和类型方法说明final ApplicationContextApplicationContextEvent.getApplicationContext()Get theApplicationContextthat the event was raised for.修饰符和类型方法说明protected voidApplicationListenerMethodAdapter.init(ApplicationContext context, cn.taketoday.context.event.EventExpressionEvaluator evaluator) voidEventListenerMethodProcessor.setApplicationContext(ApplicationContext applicationContext) 参数类型为ApplicationContext的cn.taketoday.context.event中的构造器限定符构造器说明ContextClosedEvent(ApplicationContext applicationContext) Create a new ContextRefreshedEvent.Create a new ContextStartedEvent.Create a new ContextStoppedEvent. -
cn.taketoday.context.loader中ApplicationContext的使用
限定符构造器说明BootstrapContext(BeanDefinitionRegistry registry, ConditionEvaluator conditionEvaluator, ApplicationContext context) BootstrapContext(BeanDefinitionRegistry registry, ApplicationContext context) BootstrapContext(ApplicationContext context) -
cn.taketoday.context.properties中ApplicationContext的使用
修饰符和类型方法说明static BoundConfigurationPropertiesBoundConfigurationProperties.get(ApplicationContext context) Return theBoundConfigurationPropertiesfrom the givenApplicationContextif it is available.static ConfigurationPropertiesBeanConfigurationPropertiesBean.get(ApplicationContext applicationContext, Object bean, String beanName) Return a@ConfigurationPropertiesBeaninstance for the given bean details ornullif the bean is not a@ConfigurationPropertiesobject.static Map<String,ConfigurationPropertiesBean> ConfigurationPropertiesBean.getAll(ApplicationContext applicationContext) Return all@ConfigurationPropertiesbeans contained in the given application context.voidConfigurationPropertiesBindingPostProcessor.setApplicationContext(ApplicationContext applicationContext) -
cn.taketoday.context.support中ApplicationContext的使用
修饰符和类型类说明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.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.修饰符和类型方法说明static ApplicationContextstatic ApplicationContextApplicationContextHolder.getLastStartupContext()AbstractApplicationContext.getParent()Return the parent context, ornullif there is no parent (that is, this context is the root of the context hierarchy).static ApplicationContextApplicationContextHolder.getRequired(String id) static ApplicationContextApplicationContextHolder.register(ApplicationContext context) static ApplicationContextApplicationContextHolder.register(String id, ApplicationContext context) static ApplicationContext返回变量类型为ApplicationContext的类型的cn.taketoday.context.support中的方法修饰符和类型方法说明static HashMap<String,ApplicationContext> ApplicationContextHolder.getAll()Get all ApplicationContexts in this JVMstatic Optional<ApplicationContext>修饰符和类型方法说明static ApplicationContextApplicationContextHolder.register(ApplicationContext context) static ApplicationContextApplicationContextHolder.register(String id, ApplicationContext context) static voidApplicationContextHolder.remove(ApplicationContext context) voidAbstractApplicationContext.setParent(ApplicationContext parent) Set the parent of this application context.voidGenericApplicationContext.setParent(ApplicationContext parent) Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly.限定符构造器说明Create a new AbstractApplicationContext with the given parent context.Create a new AbstractRefreshableApplicationContext with the given parent context.Create a new AbstractRefreshableConfigApplicationContext with the given parent context.Create a new AbstractXmlApplicationContext with the given parent context.Create a new ClassPathXmlApplicationContext for bean-style configuration.ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files.ClassPathXmlApplicationContext(String[] configLocations, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext(String[] paths, Class<?> clazz, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.Create a new FileSystemXmlApplicationContext for bean-style configuration.FileSystemXmlApplicationContext(String[] configLocations, boolean refresh, ApplicationContext parent) Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files.FileSystemXmlApplicationContext(String[] configLocations, ApplicationContext parent) Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.GenericApplicationContext(StandardBeanFactory beanFactory, ApplicationContext parent) Create a new GenericApplicationContext with the given StandardBeanFactory.Create a new GenericApplicationContext with the given parent.StandardApplicationContext(StandardBeanFactory beanFactory, ApplicationContext parent) Create a new StandardApplicationContext with the given StandardBeanFactory.Create a new StandardApplicationContext with the given parent.Create a new StaticApplicationContext with the given parent. -
cn.taketoday.scheduling.annotation中ApplicationContext的使用
修饰符和类型方法说明voidScheduledAnnotationBeanPostProcessor.setApplicationContext(ApplicationContext applicationContext) Setting anApplicationContextis optional: If set, registered tasks will be activated in theContextRefreshedEventphase; if not set, it will happen atScheduledAnnotationBeanPostProcessor.afterSingletonsInstantiated()time. -
cn.taketoday.validation.beanvalidation中ApplicationContext的使用
修饰符和类型方法说明voidLocalValidatorFactoryBean.setApplicationContext(ApplicationContext applicationContext)