/*******************************************************************************
 * Copyright (c) 2010, 2013 Sonatype, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Stuart McCulloch (Sonatype, Inc.) - initial API and implementation
 *******************************************************************************/
package org.sonatype.guice.bean.locators;

import javax.inject.Inject;

import com.google.inject.Binding;

@Deprecated
public final class DefaultRankingFunction
    implements RankingFunction
{
    private final org.eclipse.sisu.inject.RankingFunction delegate;

    public DefaultRankingFunction( final int primaryRank )
    {
        delegate = new org.eclipse.sisu.inject.DefaultRankingFunction( primaryRank );
    }

    @Inject
    public DefaultRankingFunction()
    {
        this( 0 );
    }

    public int maxRank()
    {
        return delegate.maxRank();
    }

    public <T> int rank( final Binding<T> binding )
    {
        return delegate.rank( binding );
    }
}

@@ -971,16 +971,155 @@
 @Inject%0A
+    public DefaultRankingFunction( final org.eclipse.sisu.inject.RankingFunction delegate )%0A    %7B%0A        this.delegate = delegate;%0A    %7D%0A%0A
     publ

Fix default ranking delegation