Package com.google.inject.internal
Class InjectorImpl.ConvertedConstantBindingImpl<T>
java.lang.Object
com.google.inject.internal.BindingImpl<T>
com.google.inject.internal.InjectorImpl.ConvertedConstantBindingImpl<T>
- All Implemented Interfaces:
Binding<T>,ConvertedConstantBinding<T>,Element,HasDependencies
- Enclosing class:
InjectorImpl
private static class InjectorImpl.ConvertedConstantBindingImpl<T>
extends BindingImpl<T>
implements ConvertedConstantBinding<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final TypeConverterBinding(package private) final T -
Constructor Summary
ConstructorsConstructorDescriptionConvertedConstantBindingImpl(InjectorImpl injector, Key<T> key, T value, Binding<String> originalBinding, TypeConverterBinding typeConverterBinding) -
Method Summary
Modifier and TypeMethodDescription<V> VacceptTargetVisitor(BindingTargetVisitor<? super T, V> visitor) Accepts a target visitor.voidWrites this module element to the given binder (optional operation).booleanSet<Dependency<?>> Returns a singleton set containing only the converted key.Returns the scoped provider guice uses to fulfill requests for this binding.Returns the key for the source binding.Returns the type converter binding used to convert the constant.getValue()Returns the converted value.inthashCode()toString()Methods inherited from class com.google.inject.internal.BindingImpl
acceptScopingVisitor, acceptVisitor, getInjector, getInternalFactory, getKey, getScoping, getSource, isConstant, withKey, withScopingMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.inject.Binding
acceptScopingVisitor, getKeyMethods inherited from interface com.google.inject.spi.Element
acceptVisitor, getSource
-
Field Details
-
value
-
provider
-
originalBinding
-
typeConverterBinding
-
-
Constructor Details
-
ConvertedConstantBindingImpl
ConvertedConstantBindingImpl(InjectorImpl injector, Key<T> key, T value, Binding<String> originalBinding, TypeConverterBinding typeConverterBinding)
-
-
Method Details
-
getProvider
Description copied from interface:BindingReturns the scoped provider guice uses to fulfill requests for this binding.- Specified by:
getProviderin interfaceBinding<T>- Overrides:
getProviderin classBindingImpl<T>
-
acceptTargetVisitor
Description copied from interface:BindingAccepts a target visitor. Invokes the visitor method specific to this binding's target.- Specified by:
acceptTargetVisitorin interfaceBinding<T>- Parameters:
visitor- to call back on
-
getValue
Description copied from interface:ConvertedConstantBindingReturns the converted value.- Specified by:
getValuein interfaceConvertedConstantBinding<T>
-
getTypeConverterBinding
Description copied from interface:ConvertedConstantBindingReturns the type converter binding used to convert the constant.- Specified by:
getTypeConverterBindingin interfaceConvertedConstantBinding<T>
-
getSourceKey
Description copied from interface:ConvertedConstantBindingReturns the key for the source binding. That binding can be retrieved from an injector usingInjector.getBinding(key).- Specified by:
getSourceKeyin interfaceConvertedConstantBinding<T>
-
getDependencies
Description copied from interface:ConvertedConstantBindingReturns a singleton set containing only the converted key.- Specified by:
getDependenciesin interfaceConvertedConstantBinding<T>- Specified by:
getDependenciesin interfaceHasDependencies- Returns:
- a possibly empty set
-
applyTo
Description copied from interface:ElementWrites this module element to the given binder (optional operation). -
toString
- Overrides:
toStringin classBindingImpl<T>
-
equals
-
hashCode
public int hashCode()
-