@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Autowire
Autowiring is performed via AutowireCapableBeanFactory.createBean(Class, int, boolean)
to have a fully initialized bean, including applied BeanPostProcessors (in contrast to
AutowireCapableBeanFactory.autowire(java.lang.Class, int, boolean)).
The parameters autowiring mode and dependencyCheck when invoking
AutowireCapableBeanFactory.createBean(Class, int, boolean) are used as specified
with this annotation.
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
dependencyCheck
Whether to perform a dependency check for objects (not applicable to autowiring a constructor, thus ignored there).
|
AutowireMode |
mode
The autowiring mode to use.
|
public abstract AutowireMode mode
AutowireMode, AutowireMode.AUTODETECT by default.public abstract boolean dependencyCheck
Copyright © 2016 Oracle Corporation. All Rights Reserved.