org.springframework.core
Interface Ordered

All Known Implementing Classes:
AbstractAdvisorAutoProxyCreator, AbstractAutoProxyCreator, AbstractHandlerMapping, AbstractPathMapHandlerMapping, AbstractPointcutAdvisor, AbstractUrlHandlerMapping, BeanNameAutoProxyCreator, BeanNameUrlHandlerMapping, BeanNameViewResolver, CommonsPathMapHandlerMapping, CustomEditorConfigurer, DefaultAdvisorAutoProxyCreator, DefaultIntroductionAdvisor, DefaultPointcutAdvisor, DynamicMethodMatcherPointcutAdvisor, NameMatchMethodPointcutAdvisor, PreferencesPlaceholderConfigurer, PropertyOverrideConfigurer, PropertyPlaceholderConfigurer, PropertyResourceConfigurer, RegexpMethodPointcutAdvisor, ResourceBundleViewResolver, ServletContextPropertyPlaceholderConfigurer, SimpleMappingExceptionResolver, SimpleUrlHandlerMapping, StaticMethodMatcherPointcutAdvisor, TransactionAttributeSourceAdvisor, TransactionSynchronizationAdapter, XmlViewResolver

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

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) 2002-2007 The Spring Framework Project.