com.google.inject.spi.BindingTargetVisitor Java Examples

The following examples show how to use com.google.inject.spi.BindingTargetVisitor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RibbonResourceProvider.java    From ribbon with Apache License 2.0 5 votes vote down vote up
/**
 * This is needed for 'initialize(injector)' below to be called so the provider
 * can get the injector after it is instantiated.
 */
@Override
public <B, V> V acceptExtensionVisitor(
        BindingTargetVisitor<B, V> visitor,
        ProviderInstanceBinding<? extends B> binding) {
    return visitor.visit(binding);
}