|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2015 the original author or authors. |
| 2 | + * Copyright 2002-2019 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.
|
|
18 | 18 |
|
19 | 19 | /**
|
20 | 20 | * Extension of the {@link Ordered} interface, expressing a <em>priority</em>
|
21 |
| - * ordering: order values expressed by {@code PriorityOrdered} objects |
22 |
| - * always apply before same order values expressed by <em>plain</em> |
23 |
| - * {@link Ordered} objects. |
| 21 | + * ordering: {@code PriorityOrdered} objects are always applied before |
| 22 | + * <em>plain</em> {@link Ordered} objects regardless of their order values. |
24 | 23 | *
|
25 |
| - * <p>This is primarily a special-purpose interface, used for objects where |
26 |
| - * it is particularly important to recognize <em>prioritized</em> objects |
27 |
| - * first, without even obtaining the remaining objects. A typical example: |
28 |
| - * prioritized post-processors in a Spring |
| 24 | + * <p>When sorting a set of {@code Ordered} objects, {@code PriorityOrdered} |
| 25 | + * objects and <em>plain</em> {@code Ordered} objects are effectively treated as |
| 26 | + * two separate subsets, with the set of {@code PriorityOrdered} objects preceding |
| 27 | + * the set of <em>plain</em> {@code Ordered} objects and with relative |
| 28 | + * ordering applied within those subsets. |
| 29 | + * |
| 30 | + * <p>This is primarily a special-purpose interface, used within the framework |
| 31 | + * itself for objects where it is particularly important to recognize |
| 32 | + * <em>prioritized</em> objects first, potentially without even obtaining the |
| 33 | + * remaining objects. A typical example: prioritized post-processors in a Spring |
29 | 34 | * {@link org.springframework.context.ApplicationContext}.
|
30 | 35 | *
|
31 | 36 | * <p>Note: {@code PriorityOrdered} post-processor beans are initialized in
|
|
34 | 39 | * beans which do not require eager initialization for type matching.
|
35 | 40 | *
|
36 | 41 | * @author Juergen Hoeller
|
| 42 | + * @author Sam Brannen |
37 | 43 | * @since 2.5
|
38 | 44 | * @see org.springframework.beans.factory.config.PropertyOverrideConfigurer
|
39 | 45 | * @see org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
|
40 | 46 | */
|
41 | 47 | public interface PriorityOrdered extends Ordered {
|
42 |
| - |
43 | 48 | }
|
0 commit comments