| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface Import
Indicates one or more Configuration classes to import.
 
Provides functionality equivalent to the <import/> element in Spring XML. Only supported for actual @Configuration-annotated classes.
@Bean definitions declared in imported @Configuration classes
 should be accessed by using @Autowired injection.  Either the bean
 itself can be autowired, or the configuration class instance declaring the bean can be
 autowired.  The latter approach allows for explicit, IDE-friendly navigation between
 @Configuration class methods.
 
If XML or other non-@Configuration bean definition resources need to be
 imported, use @ImportResource
Configuration, 
ImportResource| Required Element Summary | |
|---|---|
|  Class<?>[] | valueThe Configurationclass or classes to import. | 
| Element Detail | 
|---|
public abstract Class<?>[] value
Configuration class or classes to import.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||