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

    Modifier and Type
    Method
    Description
    int
    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 Details

    • maxRank

      int maxRank()
      Estimates the maximum rank this function may assign to a Binding.
      Returns:
      Maximum rank
      See Also:
    • 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