org.elasticsearch.common.inject.spi
Interface ProviderInstanceBinding<T>

All Superinterfaces:
Binding<T>, Element, HasDependencies
All Known Implementing Classes:
ProviderInstanceBindingImpl

public interface ProviderInstanceBinding<T>
extends Binding<T>, HasDependencies

A binding to a provider instance. The provider's get method is invoked to resolve injections.

Since:
2.0
Author:
jessewilson@google.com (Jesse Wilson)

Method Summary
 Set<InjectionPoint> getInjectionPoints()
          Returns the field and method injection points of the provider, injected at injector-creation time only.
 Provider<? extends T> getProviderInstance()
          Returns the user-supplied, unscoped provider.
 
Methods inherited from interface org.elasticsearch.common.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
 
Methods inherited from interface org.elasticsearch.common.inject.spi.Element
acceptVisitor, applyTo, getSource
 
Methods inherited from interface org.elasticsearch.common.inject.spi.HasDependencies
getDependencies
 

Method Detail

getProviderInstance

Provider<? extends T> getProviderInstance()
Returns the user-supplied, unscoped provider.


getInjectionPoints

Set<InjectionPoint> getInjectionPoints()
Returns the field and method injection points of the provider, injected at injector-creation time only.

Returns:
a possibly empty set


Copyright © 2009-2012. All Rights Reserved.