org.springframework.core
Interface Ordered
- All Known Implementing Classes:
- AbstractAutoProxyCreator, PropertyResourceConfigurer, TransactionAttributeSourceTransactionAroundAdvisor, AbstractHandlerMapping, SimpleMappingExceptionResolver
- public interface Ordered
Interface that can be implemented by objects that should be
orderable, e.g. in a Collection. The actual order can be
interpreted as prioritization, the first object (with the
lowest order value) having the highest priority.
- Author:
- Juergen Hoeller
- Since: 07.04.2003
| Method Summary |
int | getOrder() Return the order value of this object,
higher value meaning greater in terms of sorting. |
getOrder
public int getOrder()
- Return the order value of this object,
higher value meaning greater in terms of sorting.
Normally starting with 0 or 1, Integer.MAX_VALUE
indicating greatest.
Same order values will result in arbitrary positions
for the affected objects.
Higher value can be interpreted as lower priority,
consequently the first object has highest priority
(somewhat analogous to Servlet "load-on-startup" values).
- Returns: the order value