public enum AutowireMode extends Enum<AutowireMode>
AutowireCapableBeanFactory
.Enum Constant and Description |
---|
AUTODETECT |
BY_NAME |
BY_TYPE |
CONSTRUCTOR |
Modifier and Type | Method and Description |
---|---|
int |
getSpringCode() |
static AutowireMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutowireMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutowireMode AUTODETECT
public static final AutowireMode BY_NAME
public static final AutowireMode BY_TYPE
public static final AutowireMode CONSTRUCTOR
public static AutowireMode[] values()
for (AutowireMode c : AutowireMode.values()) System.out.println(c);
public static AutowireMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getSpringCode()
Copyright © 2013 Oracle Corporation. All rights reserved.