public interface

InstanceBinding

implements Binding<T> HasDependencies
com.google.inject.spi.InstanceBinding<T>

Class Overview

A binding to a single instance. The same instance is returned for every injection.

Summary

Public Methods
abstract Set<InjectionPoint> getInjectionPoints()
Returns the field and method injection points of the instance, injected at injector-creation time only.
abstract T getInstance()
Returns the user-supplied instance.
[Expand]
Inherited Methods
From interface com.google.inject.Binding
From interface com.google.inject.spi.Element
From interface com.google.inject.spi.HasDependencies

Public Methods

public abstract Set<InjectionPoint> getInjectionPoints ()

Returns the field and method injection points of the instance, injected at injector-creation time only.

Returns
  • a possibly empty set

public abstract T getInstance ()

Returns the user-supplied instance.