Package | Description |
---|---|
com.google.inject.spi |
Guice service provider interface
|
Modifier and Type | Method and Description |
---|---|
static <T> InjectionPoint |
InjectionPoint.forConstructor(Constructor<T> constructor)
Returns a new injection point for the specified constructor.
|
static <T> InjectionPoint |
InjectionPoint.forConstructor(Constructor<T> constructor,
TypeLiteral<? extends T> type)
Returns a new injection point for the specified constructor of
type . |
static InjectionPoint |
InjectionPoint.forConstructorOf(Class<?> type)
Returns a new injection point for the injectable constructor of
type . |
static InjectionPoint |
InjectionPoint.forConstructorOf(TypeLiteral<?> type)
Returns a new injection point for the injectable constructor of
type . |
static <T> InjectionPoint |
InjectionPoint.forMethod(Method method,
TypeLiteral<T> type)
Returns a new injection point for the specified method of
type . |
InjectionPoint |
ConstructorBinding.getConstructor()
Gets the constructor this binding injects.
|
InjectionPoint |
Dependency.getInjectionPoint()
Returns the injection point to which this dependency belongs, or null if this dependency isn't
attached to a particular injection point.
|
Modifier and Type | Method and Description |
---|---|
static Set<InjectionPoint> |
InjectionPoint.forInstanceMethodsAndFields(Class<?> type)
Returns all instance method and field injection points on
type . |
static Set<InjectionPoint> |
InjectionPoint.forInstanceMethodsAndFields(TypeLiteral<?> type)
Returns all instance method and field injection points on
type . |
static Set<InjectionPoint> |
InjectionPoint.forStaticMethodsAndFields(Class<?> type)
Returns all static method and field injection points on
type . |
static Set<InjectionPoint> |
InjectionPoint.forStaticMethodsAndFields(TypeLiteral<?> type)
Returns all static method and field injection points on
type . |
Set<InjectionPoint> |
ConstructorBinding.getInjectableMembers()
Returns all instance method and field injection points on
type . |
Set<InjectionPoint> |
ProviderInstanceBinding.getInjectionPoints()
Returns the field and method injection points of the provider, injected at injector-creation
time only.
|
Set<InjectionPoint> |
InjectionRequest.getInjectionPoints()
Returns the instance methods and fields of
instance that will be injected to fulfill
this request. |
Set<InjectionPoint> |
InstanceBinding.getInjectionPoints()
Returns the field and method injection points of the instance, injected at injector-creation
time only.
|
Set<InjectionPoint> |
StaticInjectionRequest.getInjectionPoints()
Returns the static methods and fields of
type that will be injected to fulfill this
request. |
Modifier and Type | Method and Description |
---|---|
abstract <T> Key<T> |
ModuleAnnotatedMethodScanner.prepareMethod(Binder binder,
Annotation annotation,
Key<T> key,
InjectionPoint injectionPoint)
Prepares a method for binding.
|
Modifier and Type | Method and Description |
---|---|
static Set<Dependency<?>> |
Dependency.forInjectionPoints(Set<InjectionPoint> injectionPoints)
Returns the dependencies from the given injection points.
|
Copyright © 2006–2018 Google, Inc.. All rights reserved.