public static enum ConfigurationCondition.ConfigurationPhase extends Enum<ConfigurationCondition.ConfigurationPhase>
| 枚举常量和说明 |
|---|
PARSE_CONFIGURATION
The
Condition should be evaluated as a @Configuration
class is being parsed. |
REGISTER_BEAN
The
Condition should be evaluated when adding a regular
(non @Configuration) bean. |
| 限定符和类型 | 方法和说明 |
|---|---|
static ConfigurationCondition.ConfigurationPhase |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConfigurationCondition.ConfigurationPhase[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ConfigurationCondition.ConfigurationPhase PARSE_CONFIGURATION
Condition should be evaluated as a @Configuration
class is being parsed.
If the condition does not match at this point, the @Configuration
class will not be added.
public static final ConfigurationCondition.ConfigurationPhase REGISTER_BEAN
Condition should be evaluated when adding a regular
(non @Configuration) bean. The condition will not prevent
@Configuration classes from being added.
At the time that the condition is evaluated, all @Configurations
will have been parsed.
public static ConfigurationCondition.ConfigurationPhase[] values()
for (ConfigurationCondition.ConfigurationPhase c : ConfigurationCondition.ConfigurationPhase.values()) System.out.println(c);
public static ConfigurationCondition.ConfigurationPhase valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值