bind(RankingFunction.class).toInstance(new RankingFunction()
{
private final RankingFunction function = new DefaultRankingFunction(rank.incrementAndGet());
public <T> int rank(Binding<T> binding) {
return function.rank(binding);
}
public int maxRank() {
return Integer.MAX_VALUE; // potential max rank could be as high as MAX_VALUE if @Priority is used
}