Uses of Interface
org.springframework.context.ApplicationContext
Packages that use ApplicationContext
Package
Description
This package builds on the beans package to add support for
message sources and for the Observer design pattern, and the
ability for application objects to obtain resources using a
consistent API.
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Support classes for application events, like standard context events.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Provides HttpMessageConverter implementations for handling JSON.
Support package for declarative messaging configuration,
with Java configuration and XML schema support.
Common infrastructure for invoking message handler methods.
Common infrastructure for invoking message handler methods with non-blocking,
and reactive contracts.
Configuration support for WebSocket messaging using higher level messaging protocols.
Annotation support for asynchronous method execution.
Scheduling convenience classes for the
java.util.concurrent
and jakarta.enterprise.concurrent packages, allowing to set up a
ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring
context.Support classes for the open source scheduler
Quartz,
allowing to set up Quartz Schedulers, JobDetails and
Triggers as beans in a Spring context.
This package contains the Spring TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
Ahead-of-time (AOT) support for the Spring TestContext Framework.
Support for context caching within the Spring TestContext Framework.
Core support for integrating the Spring TestContext Framework
with the JUnit Jupiter extension model in JUnit 5.
Support classes for integrating the Spring TestContext Framework
with JUnit 4.12 or higher.
Support classes for the Spring TestContext Framework.
Support classes for integrating the Spring TestContext Framework
with TestNG.
Web support classes for the Spring TestContext Framework.
Support for testing Spring WebFlux server endpoints via
WebTestClient.Classes supporting the org.springframework.ui.context package.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes.Common infrastructure for handler method processing, as used by
Spring MVC's
org.springframework.web.servlet.mvc.method package.Top-level package for the
spring-webflux module that contains
DispatcherHandler, the main entry
point for WebFlux server endpoint processing including key contracts used to
map requests to handlers, invoke them, and process the result.Spring WebFlux configuration infrastructure.
Support classes for serving static resources.
Infrastructure for annotation-based handler method processing.
Support for result handling through view resolution.
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
Core interfaces and classes for Spring's generic, reactive web support.
Implementations to adapt to the underlying
org.springframework.http.client.reactive reactive HTTP adapter
and HttpHandler.Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Annotation-based setup for Spring MVC.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.Support classes for serving static resources.
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
Support classes for the integration of
Groovy Templates as Spring web view technology.
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
Adapter classes for the standard Jakarta WebSocket API.
Support for annotation-based WebSocket setup in configuration classes.
-
Uses of ApplicationContext in org.springframework.context
Subinterfaces of ApplicationContext in org.springframework.contextModifier and TypeInterfaceDescriptioninterfaceSPI interface to be implemented by most if not all application contexts.Methods in org.springframework.context that return ApplicationContextModifier and TypeMethodDescriptionApplicationContext.getParent()Return the parent context, ornullif there is no parent and this is the root of the context hierarchy.Methods in org.springframework.context with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidApplicationContextAware.setApplicationContext(ApplicationContext applicationContext) Set the ApplicationContext that this object runs in.voidConfigurableApplicationContext.setParent(ApplicationContext parent) Set the parent of this application context. -
Uses of ApplicationContext in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement ApplicationContextModifier and TypeClassDescriptionclassStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations. -
Uses of ApplicationContext in org.springframework.context.event
Methods in org.springframework.context.event that return ApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContextApplicationContextEvent.getApplicationContext()Get theApplicationContextthat the event was raised for.Methods in org.springframework.context.event with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidEventListenerMethodProcessor.setApplicationContext(ApplicationContext applicationContext) Constructors in org.springframework.context.event with parameters of type ApplicationContextModifierConstructorDescriptionCreate a new ContextStartedEvent.ContextClosedEvent(ApplicationContext source) Creates a new ContextClosedEvent.Create a new ContextRefreshedEvent.Create a new ContextStartedEvent.Create a new ContextStoppedEvent. -
Uses of ApplicationContext in org.springframework.context.support
Classes in org.springframework.context.support that implement ApplicationContextModifier and TypeClassDescriptionclassAbstract 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 internalDefaultListableBeanFactoryinstance and does not assume a specific bean definition format.classAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String).classConvenient application context with built-in XML support.classApplicationContextimplementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.Methods in org.springframework.context.support that return ApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContextApplicationObjectSupport.getApplicationContext()Return the ApplicationContext that this object is associated with.AbstractApplicationContext.getParent()Return the parent context, ornullif there is no parent (that is, this context is the root of the context hierarchy).protected final ApplicationContextApplicationObjectSupport.obtainApplicationContext()Obtain the ApplicationContext for actual use.Methods in org.springframework.context.support with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidApplicationObjectSupport.initApplicationContext(ApplicationContext context) Subclasses can override this for custom initialization behavior.final voidApplicationObjectSupport.setApplicationContext(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.Constructors in org.springframework.context.support with parameters of type ApplicationContextModifierConstructorDescriptionCreate 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.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[] 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.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.Create a new ClassPathXmlApplicationContext 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.Create a new FileSystemXmlApplicationContext for bean-style configuration.GenericApplicationContext(DefaultListableBeanFactory beanFactory, ApplicationContext parent) Create a new GenericApplicationContext with the given DefaultListableBeanFactory.Create a new GenericApplicationContext with the given parent.Create a new StaticApplicationContext with the given parent. -
Uses of ApplicationContext in org.springframework.http.converter.json
Methods in org.springframework.http.converter.json with parameters of type ApplicationContextModifier and TypeMethodDescriptionJackson2ObjectMapperBuilder.applicationContext(ApplicationContext applicationContext) Set the SpringApplicationContextin order to autowire Jackson handlers (JsonSerializer,JsonDeserializer,KeyDeserializer,TypeResolverBuilderandTypeIdResolver).voidJackson2ObjectMapperFactoryBean.setApplicationContext(ApplicationContext applicationContext) Set the builderApplicationContextin order to autowire Jackson handlers (JsonSerializer,JsonDeserializer,KeyDeserializer,TypeResolverBuilderandTypeIdResolver). -
Uses of ApplicationContext in org.springframework.jms.config
Methods in org.springframework.jms.config with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidJmsListenerEndpointRegistry.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.messaging.handler.invocation
Methods in org.springframework.messaging.handler.invocation that return ApplicationContextMethods in org.springframework.messaging.handler.invocation with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidAbstractMethodMessageHandler.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.messaging.handler.invocation.reactive
Methods in org.springframework.messaging.handler.invocation.reactive that return ApplicationContextMethods in org.springframework.messaging.handler.invocation.reactive with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidAbstractMethodMessageHandler.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.messaging.simp.config
Methods in org.springframework.messaging.simp.config that return ApplicationContextMethods in org.springframework.messaging.simp.config with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidAbstractMessageBrokerConfiguration.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.scheduling.annotation
Methods in org.springframework.scheduling.annotation with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidScheduledAnnotationBeanPostProcessor.setApplicationContext(ApplicationContext applicationContext) Setting anApplicationContextis optional: If set, registered tasks will be activated in theContextRefreshedEventphase; if not set, it will happen atScheduledAnnotationBeanPostProcessor.afterSingletonsInstantiated()time. -
Uses of ApplicationContext in org.springframework.scheduling.concurrent
Methods in org.springframework.scheduling.concurrent with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidExecutorConfigurationSupport.setApplicationContext(ApplicationContext applicationContext) voidSimpleAsyncTaskScheduler.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.scheduling.quartz
Methods in org.springframework.scheduling.quartz with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidJobDetailFactoryBean.setApplicationContext(ApplicationContext applicationContext) voidSchedulerFactoryBean.setApplicationContext(ApplicationContext applicationContext) voidSpringBeanJobFactory.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.test.context
Methods in org.springframework.test.context that return ApplicationContextModifier and TypeMethodDescriptionContextLoadException.getApplicationContext()Get theApplicationContextthat failed to load.TestContext.getApplicationContext()Get the application context for this test context, possibly cached.MergedContextConfiguration.getParentApplicationContext()Get the parentApplicationContextfor the context defined by thisMergedContextConfigurationfrom the context cache.CacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedConfig) Load the application context for the suppliedMergedContextConfigurationby delegating to theContextLoaderconfigured in the givenMergedContextConfiguration.ContextLoader.loadContext(String... locations) Deprecated.default ApplicationContextSmartContextLoader.loadContext(String... locations) SmartContextLoaderdoes not support deprecatedContextLoadermethods.SmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) Load a newApplicationContextbased on the suppliedMergedContextConfiguration, configure the context, and return the context in a fully refreshed state.Methods in org.springframework.test.context with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidApplicationContextFailureProcessor.processLoadFailure(ApplicationContext context, Throwable exception) Invoked when a failure was encountered while attempting to load anApplicationContext.Constructors in org.springframework.test.context with parameters of type ApplicationContextModifierConstructorDescriptionContextLoadException(ApplicationContext applicationContext, Throwable cause) -
Uses of ApplicationContext in org.springframework.test.context.aot
Methods in org.springframework.test.context.aot that return ApplicationContextModifier and TypeMethodDescriptionAotContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig) Load a newApplicationContextfor AOT build-time processing based on the suppliedMergedContextConfiguration, configure the context, and return the context.AotContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load a newApplicationContextfor AOT run-time execution based on the suppliedMergedContextConfigurationandApplicationContextInitializer. -
Uses of ApplicationContext in org.springframework.test.context.cache
Methods in org.springframework.test.context.cache that return ApplicationContextModifier and TypeMethodDescriptionContextCache.get(MergedContextConfiguration key) Obtain a cachedApplicationContextfor the given key.DefaultContextCache.get(MergedContextConfiguration key) DefaultCacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedConfig) protected ApplicationContextDefaultCacheAwareContextLoaderDelegate.loadContextInAotMode(org.springframework.test.context.cache.AotMergedContextConfiguration aotMergedConfig) protected ApplicationContextDefaultCacheAwareContextLoaderDelegate.loadContextInternal(MergedContextConfiguration mergedConfig) Load theApplicationContextfor the supplied merged context configuration.Methods in org.springframework.test.context.cache with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidContextCache.put(MergedContextConfiguration key, ApplicationContext context) Explicitly add anApplicationContextinstance to the cache under the given key, potentially honoring a custom eviction policy.voidDefaultContextCache.put(MergedContextConfiguration key, ApplicationContext context) -
Uses of ApplicationContext in org.springframework.test.context.junit.jupiter
Methods in org.springframework.test.context.junit.jupiter that return ApplicationContextModifier and TypeMethodDescriptionstatic ApplicationContextSpringExtension.getApplicationContext(org.junit.jupiter.api.extension.ExtensionContext context) Get theApplicationContextassociated with the suppliedExtensionContext. -
Uses of ApplicationContext in org.springframework.test.context.junit4
Fields in org.springframework.test.context.junit4 declared as ApplicationContextModifier and TypeFieldDescriptionprotected ApplicationContextAbstractJUnit4SpringContextTests.applicationContextTheApplicationContextthat was injected into this test instance viaAbstractJUnit4SpringContextTests.setApplicationContext(ApplicationContext).Methods in org.springframework.test.context.junit4 with parameters of type ApplicationContextModifier and TypeMethodDescriptionfinal voidAbstractJUnit4SpringContextTests.setApplicationContext(ApplicationContext applicationContext) Set theApplicationContextto be used by this test instance, provided viaApplicationContextAwaresemantics. -
Uses of ApplicationContext in org.springframework.test.context.support
Methods in org.springframework.test.context.support that return ApplicationContextModifier and TypeMethodDescriptionDefaultTestContext.getApplicationContext()Get the application context for this test context.final ApplicationContextAbstractDelegatingSmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) Delegates to an appropriate candidateSmartContextLoaderto load anApplicationContext.final ApplicationContextAbstractGenericContextLoader.loadContext(MergedContextConfiguration mergedConfig) Load aGenericApplicationContextfor the suppliedMergedContextConfiguration.final ApplicationContextAbstractDelegatingSmartContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig) Delegates to an appropriate candidateSmartContextLoaderto load anApplicationContextfor AOT processing.final ApplicationContextAbstractDelegatingSmartContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Delegates to an appropriate candidateSmartContextLoaderto load anApplicationContextfor AOT run-time execution. -
Uses of ApplicationContext in org.springframework.test.context.testng
Fields in org.springframework.test.context.testng declared as ApplicationContextModifier and TypeFieldDescriptionprotected ApplicationContextAbstractTestNGSpringContextTests.applicationContextTheApplicationContextthat was injected into this test instance viaAbstractTestNGSpringContextTests.setApplicationContext(ApplicationContext).Methods in org.springframework.test.context.testng with parameters of type ApplicationContextModifier and TypeMethodDescriptionfinal voidAbstractTestNGSpringContextTests.setApplicationContext(ApplicationContext applicationContext) Set theApplicationContextto be used by this test instance, provided viaApplicationContextAwaresemantics. -
Uses of ApplicationContext in org.springframework.test.context.web
Methods in org.springframework.test.context.web that return ApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContextAbstractGenericWebContextLoader.loadContext(String... locations) AbstractGenericWebContextLoadershould be used as aSmartContextLoader, not as a legacyContextLoader.final ApplicationContextAbstractGenericWebContextLoader.loadContext(MergedContextConfiguration mergedConfig) Load aGenericWebApplicationContextfor the suppliedMergedContextConfiguration. -
Uses of ApplicationContext in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server with parameters of type ApplicationContextModifier and TypeMethodDescriptionstatic WebTestClient.MockServerSpec<?>WebTestClient.bindToApplicationContext(ApplicationContext applicationContext) Use this option to set up a server from the Spring configuration of your application, or some subset of it. -
Uses of ApplicationContext in org.springframework.ui.context.support
Methods in org.springframework.ui.context.support with parameters of type ApplicationContextModifier and TypeMethodDescriptionstatic ThemeSourceUiApplicationContextUtils.initThemeSource(ApplicationContext context) Deprecated.Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource". -
Uses of ApplicationContext in org.springframework.validation.beanvalidation
Methods in org.springframework.validation.beanvalidation with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidLocalValidatorFactoryBean.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.web.context
Subinterfaces of ApplicationContext in org.springframework.web.contextModifier and TypeInterfaceDescriptioninterfaceInterface to be implemented by configurable web application contexts.interfaceInterface to provide configuration for a web application.Methods in org.springframework.web.context that return ApplicationContextModifier and TypeMethodDescriptionprotected ApplicationContextContextLoader.loadParentContext(ServletContext servletContext) Template method with default implementation (which may be overridden by a subclass), to load or obtain an ApplicationContext instance which will be used as the parent context of the root WebApplicationContext. -
Uses of ApplicationContext in org.springframework.web.context.support
Classes in org.springframework.web.context.support that implement ApplicationContextModifier and TypeClassDescriptionclassAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.classWebApplicationContextimplementation which accepts component classes as input — in particular@Configurationclasses, but also plain@Componentclasses as well as JSR-330 compliant classes usingjakarta.injectannotations.classSubclass ofGenericApplicationContext, suitable for web environments.classWebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.classStaticWebApplicationContextimplementation for testing.classWebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader.Methods in org.springframework.web.context.support with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidWebApplicationObjectSupport.initApplicationContext(ApplicationContext context) CallsWebApplicationObjectSupport.initServletContext(jakarta.servlet.ServletContext)if the given ApplicationContext is aWebApplicationContext. -
Uses of ApplicationContext in org.springframework.web.method
Methods in org.springframework.web.method with parameters of type ApplicationContextModifier and TypeMethodDescriptionstatic List<ControllerAdviceBean>ControllerAdviceBean.findAnnotatedBeans(ApplicationContext context) Find beans annotated with@ControllerAdvicein the givenApplicationContextand wrap them asControllerAdviceBeaninstances. -
Uses of ApplicationContext in org.springframework.web.reactive
Methods in org.springframework.web.reactive with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidDispatcherHandler.initStrategies(ApplicationContext context) voidDispatcherHandler.setApplicationContext(ApplicationContext applicationContext) Constructors in org.springframework.web.reactive with parameters of type ApplicationContextModifierConstructorDescriptionDispatcherHandler(ApplicationContext applicationContext) Create a newDispatcherHandlerfor the givenApplicationContext. -
Uses of ApplicationContext in org.springframework.web.reactive.config
Methods in org.springframework.web.reactive.config that return ApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContextWebFluxConfigurationSupport.getApplicationContext()Methods in org.springframework.web.reactive.config with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidWebFluxConfigurationSupport.setApplicationContext(ApplicationContext applicationContext) Constructors in org.springframework.web.reactive.config with parameters of type ApplicationContext -
Uses of ApplicationContext in org.springframework.web.reactive.resource
Methods in org.springframework.web.reactive.resource with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidResourceUrlProvider.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.web.reactive.result.method.annotation
Methods in org.springframework.web.reactive.result.method.annotation with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidRequestMappingHandlerAdapter.setApplicationContext(ApplicationContext applicationContext) AConfigurableApplicationContextis expected for resolving expressions in method argument default values as well as for detecting@ControllerAdvicebeans. -
Uses of ApplicationContext in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view that return ApplicationContextModifier and TypeMethodDescriptionAbstractView.getApplicationContext()UrlBasedViewResolver.getApplicationContext()Return the containingApplicationContext, if any.protected final ApplicationContextAbstractView.obtainApplicationContext()Obtain theApplicationContextfor actual use.Methods in org.springframework.web.reactive.result.view with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidAbstractView.setApplicationContext(ApplicationContext applicationContext) voidUrlBasedViewResolver.setApplicationContext(ApplicationContext applicationContext) Accept the containingApplicationContext, if any. -
Uses of ApplicationContext in org.springframework.web.reactive.result.view.script
Methods in org.springframework.web.reactive.result.view.script that return ApplicationContextModifier and TypeMethodDescriptionRenderingContext.getApplicationContext()Return the application context.Methods in org.springframework.web.reactive.result.view.script with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidScriptTemplateView.setApplicationContext(ApplicationContext context) Constructors in org.springframework.web.reactive.result.view.script with parameters of type ApplicationContextModifierConstructorDescriptionRenderingContext(ApplicationContext applicationContext, Locale locale, Function<String, String> templateLoader, String url) Create a newRenderingContext. -
Uses of ApplicationContext in org.springframework.web.server
Methods in org.springframework.web.server that return ApplicationContextModifier and TypeMethodDescriptionServerWebExchange.getApplicationContext()Return theApplicationContextassociated with the web application, if it was initialized with one viaWebHttpHandlerBuilder.applicationContext(ApplicationContext).ServerWebExchangeDecorator.getApplicationContext() -
Uses of ApplicationContext in org.springframework.web.server.adapter
Methods in org.springframework.web.server.adapter that return ApplicationContextModifier and TypeMethodDescriptionprotected ApplicationContextAbstractReactiveWebInitializer.createApplicationContext()Return the Spring configuration that contains application beans including the ones detected byWebHttpHandlerBuilder.applicationContext.DefaultServerWebExchange.getApplicationContext()HttpWebHandlerAdapter.getApplicationContext()Return the configuredApplicationContext, if any.Methods in org.springframework.web.server.adapter with parameters of type ApplicationContextModifier and TypeMethodDescriptionstatic WebHttpHandlerBuilderWebHttpHandlerBuilder.applicationContext(ApplicationContext context) Static factory method to create a new builder instance by detecting beans in anApplicationContext.protected voidAbstractReactiveWebInitializer.refreshApplicationContext(ApplicationContext context) Refresh the given application context, if necessary.protected voidAbstractReactiveWebInitializer.registerCloseListener(ServletContext servletContext, ApplicationContext applicationContext) Register aServletContextListenerthat closes the given application context when the servlet context is destroyed.voidHttpWebHandlerAdapter.setApplicationContext(ApplicationContext applicationContext) Configure theApplicationContextassociated with the web application, if it was initialized with one viaWebHttpHandlerBuilder.applicationContext(ApplicationContext). -
Uses of ApplicationContext in org.springframework.web.servlet
Methods in org.springframework.web.servlet with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected ObjectDispatcherServlet.createDefaultStrategy(ApplicationContext context, Class<?> clazz) Create a default strategy.protected WebApplicationContextFrameworkServlet.createWebApplicationContext(ApplicationContext parent) Instantiate the WebApplicationContext for this servlet, either a defaultXmlWebApplicationContextor acustom context class, if set.protected <T> List<T>DispatcherServlet.getDefaultStrategies(ApplicationContext context, Class<T> strategyInterface) Create a List of default strategy objects for the given strategy interface.protected <T> TDispatcherServlet.getDefaultStrategy(ApplicationContext context, Class<T> strategyInterface) Return the default strategy object for the given strategy interface.protected voidDispatcherServlet.initStrategies(ApplicationContext context) Initialize the strategy objects that this servlet uses.protected voidDispatcherServlet.onRefresh(ApplicationContext context) This implementation callsDispatcherServlet.initStrategies(org.springframework.context.ApplicationContext).protected voidFrameworkServlet.onRefresh(ApplicationContext context) Template method which can be overridden to add servlet-specific refresh work.voidFrameworkServlet.setApplicationContext(ApplicationContext applicationContext) Called by Spring viaApplicationContextAwareto inject the current application context. -
Uses of ApplicationContext in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return ApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContextWebMvcConfigurationSupport.getApplicationContext()Return the associated SpringApplicationContext.Methods in org.springframework.web.servlet.config.annotation with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidRedirectViewControllerRegistration.setApplicationContext(ApplicationContext applicationContext) protected voidViewControllerRegistration.setApplicationContext(ApplicationContext applicationContext) voidWebMvcConfigurationSupport.setApplicationContext(ApplicationContext applicationContext) Set the SpringApplicationContext, e.g.Constructors in org.springframework.web.servlet.config.annotation with parameters of type ApplicationContextModifierConstructorDescriptionResourceHandlerRegistry(ApplicationContext applicationContext, ServletContext servletContext) Create a new resource handler registry for the given application context.ResourceHandlerRegistry(ApplicationContext applicationContext, ServletContext servletContext, ContentNegotiationManager contentNegotiationManager) Create a new resource handler registry for the given application context.ResourceHandlerRegistry(ApplicationContext applicationContext, ServletContext servletContext, ContentNegotiationManager contentNegotiationManager, UrlPathHelper pathHelper) A variant ofResourceHandlerRegistry(ApplicationContext, ServletContext, ContentNegotiationManager)that also accepts theUrlPathHelperused for mapping requests to static resources.ViewControllerRegistry(ApplicationContext applicationContext) Class constructor withApplicationContext.ViewResolverRegistry(ContentNegotiationManager contentNegotiationManager, ApplicationContext context) Class constructor withContentNegotiationManagerandApplicationContext. -
Uses of ApplicationContext in org.springframework.web.servlet.handler
Methods in org.springframework.web.servlet.handler with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidHandlerMappingIntrospector.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation that return ApplicationContextMethods in org.springframework.web.servlet.mvc.method.annotation with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidExceptionHandlerExceptionResolver.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.web.servlet.resource
Methods in org.springframework.web.servlet.resource with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidResourceUrlProvider.detectResourceHandlers(ApplicationContext appContext) voidResourceUrlProvider.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.web.servlet.view
Methods in org.springframework.web.servlet.view with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoidViewResolverComposite.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.web.servlet.view.groovy
Methods in org.springframework.web.servlet.view.groovy that return ApplicationContextModifier and TypeMethodDescriptionprotected ApplicationContextGroovyMarkupConfigurer.getApplicationContext()Methods in org.springframework.web.servlet.view.groovy with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidGroovyMarkupView.initApplicationContext(ApplicationContext context) Invoked at startup.voidGroovyMarkupConfigurer.setApplicationContext(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.web.servlet.view.script
Methods in org.springframework.web.servlet.view.script that return ApplicationContextModifier and TypeMethodDescriptionRenderingContext.getApplicationContext()Return the application context.Methods in org.springframework.web.servlet.view.script with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidScriptTemplateView.initApplicationContext(ApplicationContext context) Constructors in org.springframework.web.servlet.view.script with parameters of type ApplicationContextModifierConstructorDescriptionRenderingContext(ApplicationContext applicationContext, Locale locale, Function<String, String> templateLoader, String url) Create a newRenderingContext. -
Uses of ApplicationContext in org.springframework.web.socket.adapter.standard
Methods in org.springframework.web.socket.adapter.standard that return ApplicationContextModifier and TypeMethodDescriptionprotected ApplicationContextConvertingEncoderDecoderSupport.getApplicationContext()Returns the activeApplicationContext. -
Uses of ApplicationContext in org.springframework.web.socket.config.annotation
Methods in org.springframework.web.socket.config.annotation with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected voidWebMvcStompEndpointRegistry.setApplicationContext(ApplicationContext applicationContext)
SmartContextLoaderSPI