类的使用
org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader
使用GroovyBeanDefinitionReader的程序包 程序包 说明 org.springframework.beans.factory.groovy Support package for Groovy-based bean definitions.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.beans.factory.groovy中GroovyBeanDefinitionReader的使用
返回GroovyBeanDefinitionReader的org.springframework.beans.factory.groovy中的方法 修饰符和类型 方法 说明 GroovyBeanDefinitionReaderGroovyBeanDefinitionReader. beans(groovy.lang.Closure<?> closure)Defines a set of beans for the given block or closure.protected GroovyBeanDefinitionReaderGroovyBeanDefinitionReader. invokeBeanDefiningClosure(groovy.lang.Closure<?> callable)When a method argument is only a closure it is a set of bean definitions.org.springframework.context.support中GroovyBeanDefinitionReader的使用
返回GroovyBeanDefinitionReader的org.springframework.context.support中的方法 修饰符和类型 方法 说明 GroovyBeanDefinitionReaderGenericGroovyApplicationContext. getReader()Exposes the underlyingGroovyBeanDefinitionReaderfor convenient access to theloadBeanDefinitionmethods on it as well as the ability to specify an inline Groovy bean definition closure.org.springframework.web.context.support中GroovyBeanDefinitionReader的使用
参数类型为GroovyBeanDefinitionReader的org.springframework.web.context.support中的方法 修饰符和类型 方法 说明 protected voidGroovyWebApplicationContext. initBeanDefinitionReader(GroovyBeanDefinitionReader beanDefinitionReader)Initialize the bean definition reader used for loading the bean definitions of this context.protected voidGroovyWebApplicationContext. loadBeanDefinitions(GroovyBeanDefinitionReader reader)Load the bean definitions with the given GroovyBeanDefinitionReader.