public enum Autowire extends Enum<Autowire>
Available for use in annotation-based configurations, such as for the AspectJ AnnotationBeanConfigurer aspect.
Configurable,
AutowireCapableBeanFactory| 枚举常量和说明 |
|---|
BY_NAME
Constant that indicates autowiring bean properties by name.
|
BY_TYPE
Constant that indicates autowiring bean properties by type.
|
NO
Constant that indicates no autowiring at all.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isAutowire()
Return whether this represents an actual autowiring value.
|
int |
value() |
static Autowire |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Autowire[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Autowire NO
public static final Autowire BY_NAME
public static final Autowire BY_TYPE
public static Autowire[] values()
for (Autowire c : Autowire.values()) System.out.println(c);
public static Autowire valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
public boolean isAutowire()