| java.lang.Object com.google.inject.InjectorImpl
Inner Class :interface SingleInjectorFactory | |
Inner Class :class SingleFieldInjector implements SingleMemberInjector | |
Inner Class :static class SingleMethodInjector implements SingleMemberInjector | |
Inner Class :interface MethodInvoker | |
Inner Class :static class InvalidConstructor | |
Inner Class :static class SingleParameterInjector | |
Inner Class :interface SingleMemberInjector | |
Inner Class :class MissingDependencyException extends Exception | |
Inner Class :static class PrimitiveConverters extends HashMap,Converter>> | |
Inner Class :interface Converter | |
Method Summary | |
void | addInjectors(Class clazz, List<SingleMemberInjector> injectors) Recursively adds injectors for fields and methods from the given class to
the given list. | void | addInjectorsForMembers(List<M> members, boolean statics, List<SingleMemberInjector> injectors, SingleInjectorFactory<M> injectorFactory) | void | addSingleInjectorsForFields(Field[] fields, boolean statics, List<SingleMemberInjector> injectors) | void | addSingleInjectorsForMethods(Method[] methods, boolean statics, List<SingleMemberInjector> injectors) | T | callInContext(ContextualCallable<T> callable) Looks up thread local context. | SingleParameterInjector<T> | createParameterInjector(Key<T> key, Member member, int index) | public List<Binding<T>> | findBindingsByType(TypeLiteral<T> type) | public BindingImpl<T> | getBinding(Key<T> key) | public Map<Key<?>, Binding<?>> | getBindings() | ConstructorInjector<T> | getConstructor(Class<T> implementation) Gets a constructor function for a given implementation class. | ConstructorInjector<T> | getConstructor(TypeLiteral<T> implementation) | InternalFactory<? extends T> | getImplicitBinding(Member member, Class<T> type, Scope scope) Gets a factory for the specified type. | public T | getInstance(Key<T> key) | public T | getInstance(Class<T> type) | InternalFactory<? extends T> | getInternalFactory(Member member, Key<T> key) | List<String> | getNamesOfBindingAnnotations(TypeLiteral<T> type) | static Object[] | getParameters(InternalContext context, SingleParameterInjector[] parameterInjectors) Iterates over parameter injectors and creates an array of parameter
values. | SingleParameterInjector>[] | getParametersInjectors(M member, Annotation[][] annotations, Type[] parameterTypes) Gets parameter injectors. | public Provider<T> | getProvider(Class<T> type) | public Provider<T> | getProvider(Key<T> key) | void | index() Indexes bindings by type. | void | index(BindingImpl<T> binding) | void | injectMembers(Object o, InternalContext context) | public void | injectMembers(Object o) | Map<Key<?>, BindingImpl<?>> | internalBindings() | static Constructor<T> | invalidConstructor() | static InternalFactory<T> | invalidFactory() | void | setErrorHandler(ErrorHandler errorHandler) | public String | toString() | void | withDefaultSource(Object defaultSource, Runnable runnable) This is only used during Injector building. |
bindingsMultimap | final BindingsMultimap bindingsMultimap(Code) | | |
injectors | final Map<Class<?>, List<SingleMemberInjector>> injectors(Code) | | Field and method injectors.
|
addInjectors | void addInjectors(Class clazz, List<SingleMemberInjector> injectors)(Code) | | Recursively adds injectors for fields and methods from the given class to
the given list. Injects parent classes before sub classes.
|
addInjectorsForMembers | void addInjectorsForMembers(List<M> members, boolean statics, List<SingleMemberInjector> injectors, SingleInjectorFactory<M> injectorFactory)(Code) | | |
addSingleInjectorsForFields | void addSingleInjectorsForFields(Field[] fields, boolean statics, List<SingleMemberInjector> injectors)(Code) | | |
addSingleInjectorsForMethods | void addSingleInjectorsForMethods(Method[] methods, boolean statics, List<SingleMemberInjector> injectors)(Code) | | |
callInContext | T callInContext(ContextualCallable<T> callable)(Code) | | Looks up thread local context. Creates (and removes) a new context if
necessary.
|
createParameterInjector | SingleParameterInjector<T> createParameterInjector(Key<T> key, Member member, int index) throws MissingDependencyException(Code) | | |
getImplicitBinding | InternalFactory<? extends T> getImplicitBinding(Member member, Class<T> type, Scope scope)(Code) | | Gets a factory for the specified type. Used when an explicit binding
was not made. Uses synchronization here so it's not necessary in the
factory itself. Returns
null if the type isn't injectable.
|
getInstance | public T getInstance(Key<T> key)(Code) | | |
getParameters | static Object[] getParameters(InternalContext context, SingleParameterInjector[] parameterInjectors)(Code) | | Iterates over parameter injectors and creates an array of parameter
values.
|
getParametersInjectors | SingleParameterInjector>[] getParametersInjectors(M member, Annotation[][] annotations, Type[] parameterTypes) throws MissingDependencyException(Code) | | Gets parameter injectors.
Parameters: member - to which the parameters belong Parameters: annotations - on the parameters Parameters: parameterTypes - parameter types injections |
index | void index()(Code) | | Indexes bindings by type.
|
withDefaultSource | void withDefaultSource(Object defaultSource, Runnable runnable)(Code) | | This is only used during Injector building.
|
|
|