提交 bc1dc9a0 编写于 作者: J Juergen Hoeller

Removed outdated XmlBeanFactory references

Issue: SPR-13485
上级 81342f14
......@@ -8336,13 +8336,14 @@ The following table lists features provided by the `BeanFactory` and
| Yes
|===
To explicitly register a bean post-processor with a `BeanFactory` implementation, you
must write code like this:
To explicitly register a bean post-processor with a `BeanFactory` implementation,
you need to write code like this:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
ConfigurableBeanFactory factory = new XmlBeanFactory(...);
DefaultListableBeanFactory factory = new DefaultListableBeanFactory();
// populate the factory with bean definitions
// now register any needed BeanPostProcessor instances
MyBeanPostProcessor postProcessor = new MyBeanPostProcessor();
......@@ -8357,7 +8358,9 @@ implementation, you must write code like this:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
XmlBeanFactory factory = new XmlBeanFactory(new FileSystemResource("beans.xml"));
DefaultListableBeanFactory factory = new DefaultListableBeanFactory();
XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);
reader.loadBeanDefinitions(new FileSystemResource("beans.xml"));
// bring in some property values from a Properties file
PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer();
......
......@@ -3,11 +3,3 @@ log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n
log4j.rootCategory=WARN, console
log4j.logger.org.springframework.beans=WARN
log4j.logger.org.springframework.binding=DEBUG
log4j.logger.org.springframework.beans.factory.xml.XmlBeanFactory=ERROR
log4j.logger.org.springframework.web.socket.handler.LoggingWebSocketHandlerDecorator=TRACE
#log4j.logger.org.springframework=TRACE
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册