Merge branch '1.5.x'
This commit is contained in:
commit
d9f2770006
|
@ -28,16 +28,24 @@ import org.springframework.context.annotation.Condition;
|
|||
* <pre class="code">
|
||||
* static class OnJndiAndProperty extends AllNestedConditions {
|
||||
*
|
||||
* OnJndiAndProperty() {
|
||||
* super(ConfigurationPhase.PARSE_CONFIGURATION);
|
||||
* }
|
||||
*
|
||||
* @ConditionalOnJndi()
|
||||
* static class OnJndi {
|
||||
* }
|
||||
|
||||
*
|
||||
* @ConditionalOnProperty("something")
|
||||
* static class OnProperty {
|
||||
* }
|
||||
*
|
||||
* }
|
||||
* </pre>
|
||||
* <p>
|
||||
* The {@link ConfigurationPhase} should be specified according to the conditions that
|
||||
* are defined. In the example above, all conditions are static and can be evaluated
|
||||
* early so {@code PARSE_CONFIGURATION} is a right fit.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
|
|
|
@ -30,16 +30,24 @@ import org.springframework.core.annotation.Order;
|
|||
* <pre class="code">
|
||||
* static class OnJndiOrProperty extends AnyNestedCondition {
|
||||
*
|
||||
* OnJndiOrProperty() {
|
||||
* super(ConfigurationPhase.PARSE_CONFIGURATION);
|
||||
* }
|
||||
*
|
||||
* @ConditionalOnJndi()
|
||||
* static class OnJndi {
|
||||
* }
|
||||
|
||||
*
|
||||
* @ConditionalOnProperty("something")
|
||||
* static class OnProperty {
|
||||
* }
|
||||
*
|
||||
* }
|
||||
* </pre>
|
||||
* <p>
|
||||
* The {@link ConfigurationPhase} should be specified according to the conditions that
|
||||
* are defined. In the example above, all conditions are static and can be evaluated
|
||||
* early so {@code PARSE_CONFIGURATION} is a right fit.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @since 1.2.0
|
||||
|
|
|
@ -28,16 +28,24 @@ import org.springframework.context.annotation.Condition;
|
|||
* <pre class="code">
|
||||
* static class OnNeitherJndiNorProperty extends NoneOfNestedConditions {
|
||||
*
|
||||
* OnNeitherJndiNorProperty() {
|
||||
* super(ConfigurationPhase.PARSE_CONFIGURATION);
|
||||
* }
|
||||
*
|
||||
* @ConditionalOnJndi()
|
||||
* static class OnJndi {
|
||||
* }
|
||||
|
||||
*
|
||||
* @ConditionalOnProperty("something")
|
||||
* static class OnProperty {
|
||||
* }
|
||||
*
|
||||
* }
|
||||
* </pre>
|
||||
* <p>
|
||||
* The {@link ConfigurationPhase} should be specified according to the conditions that
|
||||
* are defined. In the example above, all conditions are static and can be evaluated
|
||||
* early so {@code PARSE_CONFIGURATION} is a right fit.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
|
|
Loading…
Reference in New Issue