类的使用
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.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.beans.factory.groovy中GroovyBeanDefinitionReader的使用
返回GroovyBeanDefinitionReader的org.springframework.beans.factory.groovy中的方法 修饰符和类型 方法 说明 GroovyBeanDefinitionReader
GroovyBeanDefinitionReader. beans(groovy.lang.Closure<?> closure)
Defines a set of beans for the given block or closure.protected GroovyBeanDefinitionReader
GroovyBeanDefinitionReader. 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中的方法 修饰符和类型 方法 说明 GroovyBeanDefinitionReader
GenericGroovyApplicationContext. getReader()
Exposes the underlyingGroovyBeanDefinitionReader
for convenient access to theloadBeanDefinition
methods 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 void
GroovyWebApplicationContext. initBeanDefinitionReader(GroovyBeanDefinitionReader beanDefinitionReader)
Initialize the bean definition reader used for loading the bean definitions of this context.protected void
GroovyWebApplicationContext. loadBeanDefinitions(GroovyBeanDefinitionReader reader)
Load the bean definitions with the given GroovyBeanDefinitionReader.