Re-introduce and deprecate BDPD.initDefaults(Element)

For compatibility with Spring Integration's standalone usage of
BeanDefinitionParserDelegate.
This commit is contained in:
Chris Beams 2011-02-10 13:33:09 +00:00
parent c9c436128f
commit d7a8536bd7
1 changed files with 10 additions and 1 deletions

View File

@ -325,7 +325,7 @@ public class BeanDefinitionParserDelegate {
/**
* Initialize the default lazy-init, autowire, dependency check settings,
* init-method, destroy-method and merge settings. Support nested 'beans'
* element use cases by falling back to <literal>parent</literal> in case the
* element use cases by falling back to the given parent in case the
* defaults are not explicitly set locally.
* @see #populateDefaults(DocumentDefaultsDefinition, DocumentDefaultsDefinition, org.w3c.dom.Element)
* @see #getDefaults()
@ -335,6 +335,15 @@ public class BeanDefinitionParserDelegate {
this.readerContext.fireDefaultsRegistered(this.defaults);
}
/**
* Initialize the default settings assuming a {@code null} parent delegate.
* @deprecated in Spring 3.1 in favor of
* {@link #initDefaults(Element, BeanDefinitionParserDelegate)}
*/
public void initDefaults(Element root) {
initDefaults(root, null);
}
/**
* Populate the given DocumentDefaultsDefinition instance with the default lazy-init,
* autowire, dependency check settings, init-method, destroy-method and merge settings.