java.lang.Object | |
↳ | org.eclipse.sisu.inject.DefaultRankingFunction |
Simple RankingFunction
that partitions qualified bindings into two main groups.
Default bindings are given zero or positive ranks; the rest are given negative ranks.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DefaultRankingFunction(int primaryRank) | |||||||||||
DefaultRankingFunction() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
maxRank()
Estimates the maximum rank this function may assign to a
Binding . | ||||||||||
<T> int |
rank(Binding<T> binding)
Assigns a numeric rank to the given binding.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.eclipse.sisu.inject.RankingFunction
|
Estimates the maximum rank this function may assign to a Binding
.
Assigns a numeric rank to the given binding.
binding | The binding |
---|