Interface RankingFunction

  • All Known Implementing Classes:
    DefaultRankingFunction

    public interface RankingFunction
    Assigns each Binding a rank according to some function; higher ranks take precedence over lower ranks.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int maxRank()
      Estimates the maximum rank this function may assign to a Binding.
      <T> int rank​(com.google.inject.Binding<T> binding)
      Assigns a numeric rank to the given binding.
    • Method Detail

      • rank

        <T> int rank​(com.google.inject.Binding<T> binding)
        Assigns a numeric rank to the given binding.
        Parameters:
        binding - The binding
        Returns:
        Assigned rank