Interface OrderedService

    • 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