diff --git a/spring-context/src/main/java/org/springframework/context/annotation/ImportResource.java b/spring-context/src/main/java/org/springframework/context/annotation/ImportResource.java index 15345132f25..7f702acba3a 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/ImportResource.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/ImportResource.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,19 +29,20 @@ import org.springframework.beans.factory.support.BeanDefinitionReader; * *
Like {@link Import @Import}, this annotation provides functionality similar to
* the {@code
By default, arguments to the {@link #value()} attribute will be processed using + *
By default, arguments to the {@link #value} attribute will be processed using a
* {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader} if ending in
- * ".groovy"; otherwise, {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
- * will be used to parse Spring {@code
Out of the box, ".groovy" files are going to be specifically parsed with - * {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader}; - * others with {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}. + * Resource locations from which to import. + *
Supports resource-loading prefixes such as {@code classpath:}, {@code file:}, + * etc. + *
Consult the Javadoc for {@link #reader} for details on how resources + * will be processed. + * @see #reader */ String[] value(); /** * {@link BeanDefinitionReader} implementation to use when processing resources - * specified by the {@link #value()} attribute. + * specified via the {@link #value} attribute. *
By default, the reader will be adapted to the resource path specified: - * ".groovy" files are going to be specifically parsed with + * {@code ".groovy"} files will be processed with a * {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader}; - * others with {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}. + * whereas, all other resources will be processed with an + * {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}. + * @see #value */ Class extends BeanDefinitionReader> reader() default BeanDefinitionReader.class;