|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packageorg.springframework.web.context.support
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
Create and return a new StandardServletEnvironment. Subclasses may override in order to configure the environment or specialize the environment type returned.
Register a org.springframework.beans.factory.config.BeanDefinition for any classes specified by .register(Class...) and scan any packages specified by .scan(String...).Class AnnotationConfigWebApplicationContext, void register(Class[])For any values specified by .setConfigLocation(String) or .setConfigLocations(String[]), attempt first to load each location as a class, registering a {@code BeanDefinition} if class loading is successful, and if class loading fails (i.e. a {@code ClassNotFoundException} is raised), assume the value is a package and attempt to scan it for annotated classes.
Enables the default set of annotation configuration post processors, such that {@code @Autowired}, {@code @Required}, and associated annotations can be used.
Configuration class bean definitions are registered with generated bean definition names unless the {@code value} attribute is provided to the stereotype annotation. @see #register(Class...) @see #scan(String...) @see #setConfigLocation(String) @see #setConfigLocations(String[]) @see AnnotatedBeanDefinitionReader @see ClassPathBeanDefinitionScanner
Register one or more annotated classes to be processed. Note that .refresh() must be called in order for the context to fully process the new class.Class AnnotationConfigWebApplicationContext, void setScopeMetadataResolver(ScopeMetadataResolver)Calls to .register are idempotent; adding the same annotated class more than once has no additional effect. @param annotatedClasses one or more annotated classes, e.g. @Configuration classes @see #scan(String...) @see #loadBeanDefinitions(DefaultListableBeanFactory) @see #setConfigLocation(String) @see #refresh()
Set the ScopeMetadataResolver to use for detected bean classes.The default is an org.springframework.context.annotation.AnnotationScopeMetadataResolver.
Class WebApplicationContextUtils, void initServletPropertySources(MutablePropertySources, ServletContext, ServletConfig)ReplaceConvenient{@code Servlet}-based stubvariantpropertyofsources with actual.initServletPropertySources(MutablePropertySources,instancesServletContext,populatedServletConfig)with the giventhat always providescontext{@codeobject.null}@seefororg.springframework.core.env.PropertySource.StubPropertySourcethe@seeServletConfigorg.springframework.coreparameter.env.ConfigurableEnvironment#getPropertySources()@seeorg.springframework.web.context.support.WebApplicationContextUtils#initServletPropertySources(MutablePropertySources, ServletContext, ServletConfig)
Replace {@code Servlet}-based stub property sourceswithwith actualinstancesinstances populated with the givencontext{@codeandservletContext}configand {@code servletConfig} objects.This method is idempotent with respect to the fact it may be called any number of times but will perform replacement of stub property sources with their corresponding actual property sources once and only once. @param propertySources the PropertySources to initialize (must not be {@code null}) @param servletContext the current ServletContext (ignored if {@code null} or if the servlet context property source has already been initialized) @param servletConfig the current ServletConfig (ignored if {@code null} or if the servlet config property source has already been initialized) @see org.springframework.core.env.PropertySource.StubPropertySource @see org.springframework.
web.context.support.WebApplicationContextUtils#initServletPropertySources(MutablePropertySources, ServletContext) @see org.springframework.core.env.ConfigurableEnvironment#getPropertySources()