Package com.google.inject.internal
Class ProviderMethod.FastClassProviderMethod<T>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<T>
com.google.inject.internal.InternalProviderInstanceBindingImpl.CyclicFactory<T>
com.google.inject.internal.ProviderMethod<T>
com.google.inject.internal.ProviderMethod.FastClassProviderMethod<T>
- All Implemented Interfaces:
InternalFactory<T>
,Provider<T>
,HasDependencies
,ProviderWithExtensionVisitor<T>
,ProvidesMethodBinding<T>
,javax.inject.Provider<T>
- Enclosing class:
ProviderMethod<T>
A
ProviderMethod
implementation that uses bytecode generation to invoke the provider
method.-
Field Summary
FieldsFields inherited from class com.google.inject.internal.ProviderMethod
instance, method
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
Constructor Summary
ConstructorsConstructorDescriptionFastClassProviderMethod
(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, Annotation annotation, BiFunction<Object, Object[], Object> fastMethod) -
Method Summary
Modifier and TypeMethodDescriptiondoProvision
(Object[] parameters) Extension point for our subclasses to implement the provisioning strategy.Methods inherited from class com.google.inject.internal.ProviderMethod
acceptExtensionVisitor, configure, create, doProvision, equals, getAnnotation, getDependencies, getEnclosingInstance, getInstance, getKey, getMethod, hashCode, initialize, toString
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.CyclicFactory
get
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
get, getSource
-
Field Details
-
fastMethod
-
-
Constructor Details
-
FastClassProviderMethod
FastClassProviderMethod(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, Annotation annotation, BiFunction<Object, Object[], Object> fastMethod)
-
-
Method Details
-
doProvision
Description copied from class:ProviderMethod
Extension point for our subclasses to implement the provisioning strategy.- Specified by:
doProvision
in classProviderMethod<T>
- Throws:
InvocationTargetException
-