本文整理匯總了Java中org.springframework.beans.factory.xml.XmlBeanDefinitionReader.getRegistry方法的典型用法代碼示例。如果您正苦於以下問題:Java XmlBeanDefinitionReader.getRegistry方法的具體用法?Java XmlBeanDefinitionReader.getRegistry怎麽用?Java XmlBeanDefinitionReader.getRegistry使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.springframework.beans.factory.xml.XmlBeanDefinitionReader
的用法示例。
在下文中一共展示了XmlBeanDefinitionReader.getRegistry方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: GroovyBeanDefinitionReader
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; //導入方法依賴的package包/類
/**
* Create new GroovyBeanDefinitionReader based on the given XmlBeanDefinitionReader,
* using the same registry and delegating XML loading to it.
* @param xmlBeanDefinitionReader the XmlBeanDefinitionReader to derive the registry
* from and to delegate XML loading to
*/
public GroovyBeanDefinitionReader(XmlBeanDefinitionReader xmlBeanDefinitionReader) {
super(xmlBeanDefinitionReader.getRegistry());
this.xmlBeanDefinitionReader = xmlBeanDefinitionReader;
}
示例2: GroovyBeanDefinitionReader
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; //導入方法依賴的package包/類
/**
* Create a new {@code GroovyBeanDefinitionReader} based on the given
* {@link XmlBeanDefinitionReader}, loading bean definitions into its
* {@code BeanDefinitionRegistry} and delegating Groovy DSL loading to it.
* <p>The supplied {@code XmlBeanDefinitionReader} should typically
* be pre-configured with XML validation disabled.
* @param xmlBeanDefinitionReader the {@code XmlBeanDefinitionReader} to
* derive the registry from and to delegate Groovy DSL loading to
*/
public GroovyBeanDefinitionReader(XmlBeanDefinitionReader xmlBeanDefinitionReader) {
super(xmlBeanDefinitionReader.getRegistry());
this.standardXmlBeanDefinitionReader = new XmlBeanDefinitionReader(xmlBeanDefinitionReader.getRegistry());
this.groovyDslXmlBeanDefinitionReader = xmlBeanDefinitionReader;
}