com.google.inject.spi

Interface InstanceBinding<T>

  • All Superinterfaces:
    Binding<T>, Element, HasDependencies


    public interface InstanceBinding<T>
    extends Binding<T>, HasDependencies
    A binding to a single instance. The same instance is returned for every injection.
    Since:
    2.0
    Author:
    jessewilson@google.com (Jesse Wilson)
    • Method Detail

      • getInstance

        T getInstance()
        Returns the user-supplied instance.
      • getInjectionPoints

        Set<InjectionPoint> getInjectionPoints()
        Returns the field and method injection points of the instance, injected at injector-creation time only.
        Returns:
        a possibly empty set

Copyright © 2006-2016 Google, Inc.. All Rights Reserved.