Like @Import, this annotation provides functionality similar to
the <import/> element in Spring XML. It is typically used when designing
@Configuration classes to be bootstrapped by an
AnnotationConfigApplicationContext, but where some XML functionality such
as namespaces is still necessary.
By default, arguments to the value attribute will be processed using a
GroovyBeanDefinitionReader
if ending in ".groovy"; otherwise, an
XmlBeanDefinitionReader
will be used to parse Spring <beans/> XML files. Optionally, the reader
attribute may be declared, allowing the user to choose a custom BeanDefinitionReader
implementation.
Configuration, Import
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public Class | reader()
|
| public String[] |
| locations | back to summary |
|---|---|
| public String[] locations() Resource locations from which to import. Supports resource-loading prefixes such as Consult the Javadoc for | |
| reader | back to summary |
|---|---|
| public Class
By default, the reader will be adapted to the resource path specified:
| |
| value | back to summary |
|---|---|
| public String[] value() Alias for | |