/*
 * Grapht, an open source dependency injector.
 * Copyright 2010-2012 Regents of the University of Minnesota and contributors
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 51
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */
package org.grouplens.grapht.solver;

import org.grouplens.grapht.spi.Desire;

public interface BindingFunction {
    BindingResult bind(InjectionContext context, Desire desire) throws SolverException;
}

@@ -938,42 +938,558 @@
 e;%0A%0A
-public interface BindingFunction %7B
+import javax.annotation.Nullable;%0A%0A/**%0A * Locate bindings for an injection point.%0A *%0A * @author %3Ca href=%22http://grouplens.org%22%3EGroupLens Research%3C/a%3E%0A */%0Apublic interface BindingFunction %7B%0A    /**%0A     * Find the applicable binding, if any, for a desire in a particular context.%0A     *%0A     * @param context The context.%0A     * @param desire The desire.%0A     * @return The result of binding %7B@code desire%7D, or %7B@code null%7D if there is no binding.%0A     * @throws SolverException If there is an error (such as ambiguous bindings).%0A     */%0A    @Nullable
 %0A   

Document the BindingFunction interface