Polish Javadoc

Closes gh-9726
pull/9677/merge
Stephane Nicoll 7 years ago
parent 6381b88736
commit 7e97d38de7

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2016 the original author or authors. * Copyright 2012-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,16 +28,24 @@ import org.springframework.context.annotation.Condition;
* <pre class="code"> * <pre class="code">
* static class OnJndiAndProperty extends AllNestedConditions { * static class OnJndiAndProperty extends AllNestedConditions {
* *
* OnJndiAndProperty() {
* super(ConfigurationPhase.PARSE_CONFIGURATION);
* }
*
* &#064;ConditionalOnJndi() * &#064;ConditionalOnJndi()
* static class OnJndi { * static class OnJndi {
* } * }
*
* &#064;ConditionalOnProperty("something") * &#064;ConditionalOnProperty("something")
* static class OnProperty { * static class OnProperty {
* } * }
* *
* } * }
* </pre> * </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 * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2016 the original author or authors. * Copyright 2012-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,16 +30,24 @@ import org.springframework.core.annotation.Order;
* <pre class="code"> * <pre class="code">
* static class OnJndiOrProperty extends AnyNestedCondition { * static class OnJndiOrProperty extends AnyNestedCondition {
* *
* OnJndiOrProperty() {
* super(ConfigurationPhase.PARSE_CONFIGURATION);
* }
*
* &#064;ConditionalOnJndi() * &#064;ConditionalOnJndi()
* static class OnJndi { * static class OnJndi {
* } * }
*
* &#064;ConditionalOnProperty("something") * &#064;ConditionalOnProperty("something")
* static class OnProperty { * static class OnProperty {
* } * }
* *
* } * }
* </pre> * </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 * @author Phillip Webb
* @since 1.2.0 * @since 1.2.0

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2016 the original author or authors. * Copyright 2012-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,16 +28,24 @@ import org.springframework.context.annotation.Condition;
* <pre class="code"> * <pre class="code">
* static class OnNeitherJndiNorProperty extends NoneOfNestedConditions { * static class OnNeitherJndiNorProperty extends NoneOfNestedConditions {
* *
* OnNeitherJndiNorProperty() {
* super(ConfigurationPhase.PARSE_CONFIGURATION);
* }
*
* &#064;ConditionalOnJndi() * &#064;ConditionalOnJndi()
* static class OnJndi { * static class OnJndi {
* } * }
*
* &#064;ConditionalOnProperty("something") * &#064;ConditionalOnProperty("something")
* static class OnProperty { * static class OnProperty {
* } * }
* *
* } * }
* </pre> * </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 * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0

Loading…
Cancel
Save