Generated by
JDiff

org.springframework.beans.factory.config Documentation Differences

This file contains all the changes in documentation in the package org.springframework.beans.factory.config as colored differences. Deletions are shown like 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.

Class BeanReferenceFactoryBean

FactoryBean that exposes an arbitrary target bean under a different name.

Usually, the target bean will reside in a different bean definition file, using this FactoryBean to link it in and expose it under a different name. Effectively, this corresponds to an alias for the target bean.

NOTE: For XML bean definition files, an <alias> tag is available that effectively achieves the same.

A special capability of this FactoryBean is enabled through its configuration as bean definition: The "targetBeanName" can be substituted through a placeholder, in combination with Spring's PropertyPlaceholderConfigurer. Thanks to Marcus Bristav for pointing this out! @author Juergen Hoeller @since 1.2 @see #setTargetBeanName @see PropertyPlaceholderConfigurerPropertyPlaceholderConfigurer @deprecated as of Spring 3.2, in favor of using regular bean name aliases (which support placeholder parsing since Spring 2.5)


Class CommonsLogFactoryBean

Factory bean for commons-logging org.apache.commons.logging.Log instances.

Useful for sharing Log instances among multiple beans instead of using one Log instance per class name, e.g. for common log topics. @author Juergen Hoeller @since 16.11.2003 @see org.apache.commons.logging.LogLog @deprecated as of Spring 3.2, in favor of a bean definition that points to the bean class "org.apache.commons.logging.LogFactory" and the factory method "getLog", passing in the log name as constructor argument


Class ConfigurableBeanFactory, void setCurrentlyInCreation(String, boolean)

Explicitly control the current in-creation status of the specified bean. For For container -internal use only. @param beanName the name of the bean @param inCreation whether the bean is currently in creation @since 3.1

Class DeprecatedBeanWarner, boolean isLogEnabled()

Determine whether the .logger field is enabled.

Default is {@code true} when the "warn" level is enabled. Subclasses can override this to change the level level under which logging occurs.

Class DeprecatedBeanWarner, void logDeprecatedBean(String, Class<?>, BeanDefinition)

Logs a warning for a bean annotated with @Deprecated. @param beanName the name of the deprecated bean @param beanType the user-specified type of the deprecated bean @param beanDefinition the definition of the deprecated bean
Class DeprecatedBeanWarner, void setLoggerName(String)

Set the name of the logger to use. The name will be passed to the underlying logger implementation through through Commons Logging, getting interpreted as log category according to the logger's configuration.

This can be specified to not log into the category of this warner class but ratherrather into a specific named category. @see org.apache.commons.logging.LogFactory#getLog(String) @see org.apache.log4j.Logger#getLogger(String) @see java.util.logging.Logger#getLogger(String)


Class ObjectFactoryCreatingFactoryBean, void setTargetBeanName(String)

Set the name of the target bean.

The target does not have to be a non-singleton bean, but realisticially realistically always will be (because if the target bean were a singleton, then said singleton bean could simply be injected straight into the dependent object, thus obviating the need for the extra level of indirection afforded by this factory approach).


Class PlaceholderConfigurerSupport

Abstract base class for property resource configurers that resolve placeholders in bean definition property values. Implementations pull values from a properties file or other org.springframework.core.env.PropertySource property source into bean definitions.

The default placeholder syntax follows the Ant / Log4J / JSP EL style:

${...}
Example XML bean definition:
{@code

    
    

}
Example properties file:
 driver=com.mysql.jdbc.Driver
 dbname=mysql:mydb
Annotated bean definitions may take advantage of property replacement using the @Value annotation:
@Value("${person.age}")
Implementations check simple property values, lists, maps, props, and bean names in bean references. Furthermore, placeholder values can also cross-reference other placeholders, like:
rootPath=myrootdir
subPath=${rootPath}/subdir
In contrast to PropertyOverrideConfigurer, subclasses of this type allow filling in of explicit placeholders in bean definitions.

If a configurer cannot resolve a placeholder, a BeanDefinitionStoreException will be thrown. If you want to check against multiple properties files, specify multiple resources via the locations property. You can also define multiple configurers, each with its own placeholder syntax. Use .ignoreUnresolvablePlaceholders to intentionally suppress throwing an exception if a placeholder cannot be resolved.

Default property values can be defined globally for each configurer instance via the properties property, or on a property-by-property basis using the default value separator which is {@code ":"} by default and customizable via .setValueSeparator(String).

Example XML property with default value:

{@code
  
}
@author Chris Beams @author Juergen Hoeller @since 3.1 @see PropertyPlaceholderConfigurer @see org.springframework.context.support.PropertySourcesPlaceholderConfigurer

Class PropertyPlaceholderConfigurer

PlaceholderConfigurerSupport subclass that resolves ${...} placeholders against local properties and/or system properties and environment variables.

As of Spring 3.1, PropertySourcesPlaceholderConfigurer should be used preferentially over this implementation; it is more flexible through taking advantage of the Environment and PropertySource mechanisms also made available in Spring 3.1.

PropertyPlaceholderConfigurer is still appropriate for use when:

Prior to Spring 3.1, the {@code } namespace element registered an instance of {@code PropertyPlaceholderConfigurer}. It will still do so if using the {@code spring-context-3.0.xsd} definition of the namespace. That is, you can preserve registration of {@code PropertyPlaceholderConfigurer} through the namespace, even if using Spring 3.1; simply do not update your {@code xsi:schemaLocation} and continue using the 3.0 XSD. @author Juergen Hoeller @author Chris Beams @since 02.10.2003 @see #setSystemPropertiesModeName @see PlaceholderConfigurerSupport @see PropertyOverrideConfigurer @see org.springframework.context.support.PropertySourcesPlaceholderConfigurer


Class ProviderCreatingFactoryBean, void setTargetBeanName(String)

Set the name of the target bean.

The target does not have to be a non-singleton bean, but realisticially realistically always will be (because if the target bean were a singleton, then said singleton bean could simply be injected straight into the dependent object, thus obviating the need for the extra level of indirection afforded by this factory approach).