public interface

RankingFunction

org.eclipse.sisu.locators.RankingFunction
Known Indirect Subclasses

Class Overview

Assigns each Binding a rank according to some function; higher ranks take precedence over lower ranks.

Summary

Public Methods
abstract int maxRank()
Estimates the maximum possible rank for this function; used to arrange injectors in order of ranking probability.
abstract <T> int rank(Binding<T> binding)
Assigns a numeric rank to the given binding.

Public Methods

public abstract int maxRank ()

Estimates the maximum possible rank for this function; used to arrange injectors in order of ranking probability.

Returns
  • Maximum rank

public abstract int rank (Binding<T> binding)

Assigns a numeric rank to the given binding.

Parameters
binding The binding
Returns
  • Assigned rank