org.sakaiproject.entitybroker.collector
Interface OrderedBean

All Superinterfaces:
AutoRegister

public interface OrderedBean
extends AutoRegister

This sets the order of a bean when it is grabbed by the bean collector and ensures a guaranteed priority order of collected beans, lower orders (numbers) will be loaded first and the orders do not have to be consecutive (there can be gaps)

Author:
Aaron Zeckoski (aaron@caret.cam.ac.uk)

Method Summary
 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) and the orders do not have to be consecutive (there can be gaps), 2 beans with the same order or beans with no order set will be ordered randomly
 

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) and the orders do not have to be consecutive (there can be gaps), 2 beans with the same order or beans with no order set will be ordered randomly

Returns:
an int which represents the loading order


Copyright © 2007-2012 Sakai Project. All Rights Reserved.