org.springframework.context.annotation
Annotation Type Import


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface Import

Annotation that allows one Configuration class to import another Configuration, and thereby all its Bean definitions.

Provides functionality equivalent to the <import/> element in Spring XML. Only supported for actual Configuration classes.

Since:
3.0
Author:
Chris Beams
See Also:
Configuration

Required Element Summary
 Class<?>[] value
          The Configuration class or classes to import.
 

Element Detail

value

public abstract Class<?>[] value
The Configuration class or classes to import.