Package org.dspace.kernel.mixins
Interface OrderedService
-
- All Known Subinterfaces:
RequestInterceptor
- All Known Implementing Classes:
RequestInterceptorExample
,SystemEventService.EventRequestInterceptor
public interface OrderedService
Permit the service or provider to be ordered against other classes that implement the same interface (not this one). Classes that do not implement this interface may be initialized in any order.- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getOrder()
Sets the order to load the bean which implements this method compared to other beans of the same type.
-
-
-
Method Detail
-
getOrder
int getOrder()
Sets the order to load the bean which implements this method compared to other beans of the same type. Lower orders (numbers) will be loaded first (i.e. order 1 will appear before order 3 in the list). Orders do not have to be consecutive (there can be gaps). Beans with the same order or beans with no order set will be ordered randomly.- Returns:
- an int which represents the loading order
-
-