|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2013 the original author or authors. |
| 2 | + * Copyright 2002-2014 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
19 | 19 | /**
|
20 | 20 | * A {@link Condition} that offers more fine-grained control when used with
|
21 | 21 | * {@code @Configuration}. Allows certain {@link Condition}s to adapt when they match
|
22 |
| - * based on the configuration phase. For example, a condition that checks if a bean has |
23 |
| - * already been registered might choose to only be evaluated during the |
| 22 | + * based on the configuration phase. For example, a condition that checks if a bean |
| 23 | + * has already been registered might choose to only be evaluated during the |
24 | 24 | * {@link ConfigurationPhase#REGISTER_BEAN REGISTER_BEAN} {@link ConfigurationPhase}.
|
25 | 25 | *
|
26 | 26 | * @author Phillip Webb
|
27 | 27 | * @since 4.0
|
| 28 | + * @see Configuration |
28 | 29 | */
|
29 | 30 | public interface ConfigurationCondition extends Condition {
|
30 | 31 |
|
31 | 32 | /**
|
32 |
| - * Returns the {@link ConfigurationPhase} in which the condition should be evaluated. |
| 33 | + * Return the {@link ConfigurationPhase} in which the condition should be evaluated. |
33 | 34 | */
|
34 | 35 | ConfigurationPhase getConfigurationPhase();
|
35 | 36 |
|
| 37 | + |
36 | 38 | /**
|
37 | 39 | * The various configuration phases where the condition could be evaluated.
|
38 | 40 | */
|
39 | 41 | public static enum ConfigurationPhase {
|
40 | 42 |
|
41 | 43 | /**
|
42 |
| - * The {@link Condition} should be evaluated as a {@code @Configuration} class is |
43 |
| - * being parsed. |
44 |
| - * |
45 |
| - * <p>If the condition does not match at this point the {@code @Configuration} |
| 44 | + * The {@link Condition} should be evaluated as a {@code @Configuration} |
| 45 | + * class is being parsed. |
| 46 | + * <p>If the condition does not match at this point, the {@code @Configuration} |
46 | 47 | * class will not be added.
|
47 | 48 | */
|
48 | 49 | PARSE_CONFIGURATION,
|
49 | 50 |
|
50 | 51 | /**
|
51 |
| - * The {@link Condition} should be evaluated when adding a regular (non |
52 |
| - * {@code @Configuration}) bean. The condition will not prevent |
| 52 | + * The {@link Condition} should be evaluated when adding a regular |
| 53 | + * (non {@code @Configuration}) bean. The condition will not prevent |
53 | 54 | * {@code @Configuration} classes from being added.
|
54 |
| - * |
55 |
| - * <p>At the time that the condition is evaluated all {@code @Configuration}s |
| 55 | + * <p>At the time that the condition is evaluated, all {@code @Configuration}s |
56 | 56 | * will have been parsed.
|
57 | 57 | */
|
58 | 58 | REGISTER_BEAN
|
|
0 commit comments