com.google.inject.spi.ProvidesMethodTargetVisitor Maven / Gradle / Ivy
package com.google.inject.spi;
import com.google.inject.Provides;
import com.google.inject.spi.BindingTargetVisitor;
/**
* A visitor for the {@literal @}{@link Provides} bindings.
*
* If your {@link BindingTargetVisitor} implements this interface, bindings created by using
* {@code @Provides} will be visited through this interface.
*
* @since 4.0
* @author [email protected] (Sam Berlin)
*/
public interface ProvidesMethodTargetVisitor extends BindingTargetVisitor {
/**
* Visits an {@link ProvidesMethodBinding} created with an {@literal @}{@link Provides} method.
*/
V visit(ProvidesMethodBinding extends T> providesMethodBinding);
}