Package org.eclipse.sisu.inject

Examples of org.eclipse.sisu.inject.RankingFunction


    /*
     * Workaround Sisu issue where DefaultRankingFunction doesn't take account potential @Priority values
     * when calculating the maximum potential rank contained in a given Injector - this heuristic is used
     * to decide the optimal time to merge in new results when iterating over a dynamic collection.
     */
    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);
View Full Code Here

TOP

Related Classes of org.eclipse.sisu.inject.RankingFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.