org.springframework.core
Interface Ordered

All Known Implementing Classes:
AbstractAutoProxyCreator, AbstractHandlerMapping, CustomEditorConfigurer, PropertyResourceConfigurer, SimpleMappingExceptionResolver, TransactionAttributeSourceTransactionAroundAdvisor

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.

Since:
07.04.2003
Author:
Juergen Hoeller

Method Summary
 int getOrder()
          Return the order value of this object, higher value meaning greater in terms of sorting.
 

Method Detail

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


Copyright (C) 2003-2004 The Spring Framework Project.