| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final InjectionPoint | |
| private final ConstructorBindingImpl. |
| Access | Constructor and Description |
|---|---|
| private | ConstructorBindingImpl(InjectorImpl injector, Key<T> key, Object source, InternalFactory<? extends T> scopedFactory, Scoping scoping, ConstructorBindingImpl.
|
| public | ConstructorBindingImpl(Key<T> key, Object source, Scoping scoping, InjectionPoint constructorInjectionPoint, Set<InjectionPoint> injectionPoints)
|
| Modifier and Type | Method and Description |
|---|---|
| public <V> V | acceptTargetVisitor(BindingTargetVisitor<? super T, V>
to call back on visitor)Implements com. |
| public void | applyTo(Binder
to apply configuration element to binder)Implements com. |
| pack-priv static <T> ConstructorBindingImpl | create(InjectorImpl injector, Key<T> key, InjectionPoint
the constructor to use, or constructorInjector, Object source, Scoping scoping, Errors errors, boolean null to use the default.true if this ConstructorBindingImpl's InternalFactory should only
succeed if retrieved from a linked binding failIfNotLinked, boolean atInjectRequired)
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public InjectionPoint | getConstructor()
Implements com. |
| public Set | getDependencies()
Implements com. |
| public Set | getInjectableMembers()
Implements com. type.
|
| pack-priv InjectionPoint | getInternalConstructor()
Returns an injection point that can be used to clean up the constructor store. |
| pack-priv Set | getInternalDependencies()
Returns a set of dependencies that can be iterated over to clean up stray JIT bindings. |
| public Map | getMethodInterceptors()
Implements com. |
| public int | |
| public void | initialize(InjectorImpl injector, Errors errors)
Implements com. |
| pack-priv boolean | |
| public String | toString()
Returns a string representation of the object.
|
| protected BindingImpl | |
| protected BindingImpl |
| constructorInjectionPoint | back to summary |
|---|---|
| private final InjectionPoint constructorInjectionPoint | |
| factory | back to summary |
|---|---|
| private final ConstructorBindingImpl. | |
| ConstructorBindingImpl | back to summary |
|---|---|
| private ConstructorBindingImpl(InjectorImpl injector, Key<T> key, Object source, InternalFactory<? extends T> scopedFactory, Scoping scoping, ConstructorBindingImpl. | |
| ConstructorBindingImpl | back to summary |
|---|---|
| public ConstructorBindingImpl(Key<T> key, Object source, Scoping scoping, InjectionPoint constructorInjectionPoint, Set<InjectionPoint> injectionPoints) | |
| acceptTargetVisitor | back to summary |
|---|---|
| public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T, V> visitor) Implements com. Doc from com. Accepts a target visitor. Invokes the visitor method specific to this binding's target.
| |
| applyTo | back to summary |
|---|---|
| public void applyTo(Binder binder) Implements com. Doc from com. Writes this module element to the given binder (optional operation).
| |
| create | back to summary |
|---|---|
pack-priv static <T> ConstructorBindingImpl
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getConstructor | back to summary |
|---|---|
| public InjectionPoint getConstructor() Implements com. Doc from com. Gets the constructor this binding injects.
| |
| getDependencies | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns the known dependencies for this type. If this has dependencies whose values are not
known statically, a dependency for the
| |
| getInjectableMembers | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns all instance method and field injection points on
| |
| getInternalConstructor | back to summary |
|---|---|
| pack-priv InjectionPoint getInternalConstructor() Returns an injection point that can be used to clean up the constructor store. | |
| getInternalDependencies | back to summary |
|---|---|
| pack-priv Set Returns a set of dependencies that can be iterated over to clean up stray JIT bindings. | |
| getMethodInterceptors | back to summary |
|---|---|
| public Map Implements com. Doc from com. Returns the interceptors applied to each method, in the order that they will be applied.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initialize | back to summary |
|---|---|
| public void initialize(InjectorImpl injector, Errors errors) throws ErrorsException Implements com. Doc from com. Initializes this binding, throwing any errors if necessary.
| |
| isInitialized | back to summary |
|---|---|
| pack-priv boolean isInitialized() True if this binding has been initialized and is ready for use. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object. | |
| withKey | back to summary |
|---|---|
| protected BindingImpl Overrides com.
| |
| withScoping | back to summary |
|---|---|
| protected BindingImpl Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private ConstructorInjector | |
| private final boolean | |
| private final Key | |
| private ProvisionListenerStackCallback |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public T | get(InternalContext
of this injection context, Dependency<?> dependency, boolean true if getting as a result of a linked binding linked)Implements com. |
| constructorInjector | back to summary |
|---|---|
| private ConstructorInjector<T> constructorInjector | |
| failIfNotLinked | back to summary |
|---|---|
| private final boolean failIfNotLinked | |
| key | back to summary |
|---|---|
| private final Key<?> key | |
| provisionCallback | back to summary |
|---|---|
| private ProvisionListenerStackCallback<T> provisionCallback | |
| Factory | back to summary |
|---|---|
| pack-priv Factory(boolean failIfNotLinked, Key<?> key) | |
| get | back to summary |
|---|---|
| public T get(InternalContext context, Dependency<?> dependency, boolean linked) throws InternalProvisionException Implements com. Doc from com. Creates an object to be injected.
| |