spring-framework / org.springframework.context.annotation / ImportResource / reader

reader

val reader: KClass<out BeanDefinitionReader>

BeanDefinitionReader implementation to use when processing resources specified via the #value attribute.

By default, the reader will be adapted to the resource path specified: ".groovy" files will be processed with a org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader; whereas, all other resources will be processed with an org.springframework.beans.factory.xml.XmlBeanDefinitionReader.

See Also
#value