|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Component @Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented public @interface Configuration
Annotation indicating that a class is a "Java Configuration" class, meaning that it exposes one
or more Bean
methods. Holds similar information to that held in the default values of a
bean factory; can generally be thought of as the JavaConfig equivalent of XML's 'beans' root
element.
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.
Configuration-annotated classes are also candidates for component scanning thanks to the fact
that this annotation is meta-annotated with @Component
.
Optional Element Summary | |
---|---|
boolean |
checkRequired
Do we check @Required methods to make sure they've been
called? |
org.springframework.beans.factory.annotation.Autowire |
defaultAutowire
Specifies the default autowiring strategy. |
DependencyCheck |
defaultDependencyCheck
Dependency check strategy. |
Lazy |
defaultLazy
Bean instantiation strategy. |
java.lang.String[] |
names
Configuration name. |
boolean |
useFactoryAspects
Do we autowire with aspects from the enclosing factory scope? |
public abstract java.lang.String[] names
public abstract org.springframework.beans.factory.annotation.Autowire defaultAutowire
Autowire
public abstract DependencyCheck defaultDependencyCheck
DependencyCheck
public abstract Lazy defaultLazy
Lazy
public abstract boolean useFactoryAspects
public abstract boolean checkRequired
@Required
methods to make sure they've been
called?
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |