org.springframework.config.java.annotation
Annotation Type Configuration


@Component
@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
public @interface Configuration

Annotation for a configuration class. This annotation is not required, however its use is recommended to improve configuration processing performance. Holds similar information to that held in the default values of a bean factory.

Note however that the information here is not used to populate the defaults of the owning bean factory, which would affect other configurations. In the style of the Java configuration mechanism generally, each Java configuration class is kept isolated.

Author:
Rod Johnson

Optional Element Summary
 Autowire defaultAutowire
          Specifies the default autowiring strategy.
 DependencyCheck defaultDependencyCheck
          Dependency check strategy.
 Lazy defaultLazy
          Bean instantiation strategy.
 String[] names
          Configuration name.
 boolean useFactoryAspects
          Do we autowire with aspects from the enclosing factory scope?
 

names

public abstract String[] names
Configuration name. Allow different variants, such as test, production etc. Default will always match.

Returns:
Default:
""

defaultAutowire

public abstract Autowire defaultAutowire
Specifies the default autowiring strategy.

Returns:
See Also:
Autowire
Default:
INHERITED

defaultDependencyCheck

public abstract DependencyCheck defaultDependencyCheck
Dependency check strategy. By default, the dependency check is unspecified, that is the default Spring option will apply. In most cases, it means no dependency check will be done.

Returns:
See Also:
DependencyCheck
Default:
UNSPECIFIED

defaultLazy

public abstract Lazy defaultLazy
Bean instantiation strategy. By default, it is unspecified.

Returns:
See Also:
Lazy
Default:
UNSPECIFIED

useFactoryAspects

public abstract boolean useFactoryAspects
Do we autowire with aspects from the enclosing factory scope?

Default:
false


Copyright 2005-2008 Spring Framework. All Rights Reserved.