Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractBinding<T> - Class in build.codemodel.dependency.injection
-
An
abstractBinding. - AbstractBinding(Dependency) - Constructor for class build.codemodel.dependency.injection.AbstractBinding
-
Constructs an
AbstractBindingfor the specifiedDependency. - AbstractBindingBuilder<T> - Class in build.codemodel.dependency.injection
-
An abstract
BindingBuilder. - AbstractBindingBuilder(InjectionFramework, TypeUsage) - Constructor for class build.codemodel.dependency.injection.AbstractBindingBuilder
-
Constructs the
AbstractBindingBuilder. - AbstractDependency - Class in build.codemodel.dependency.injection
-
An
abstractDependency. - AbstractDependency() - Constructor for class build.codemodel.dependency.injection.AbstractDependency
- add(Class) - Method in interface build.codemodel.dependency.injection.MultiBinder
-
Adds a binding by implementation class, which is instantiated via the
Contextat injection time. - add(Supplier) - Method in interface build.codemodel.dependency.injection.MultiBinder
-
Adds a binding via supplier, which is called at injection time to produce the value.
- add(T) - Method in interface build.codemodel.dependency.injection.MultiBinder
-
Adds a pre-constructed value to the set.
- addResolver(Resolver) - Method in class build.codemodel.dependency.injection.ChainedResolver
-
Adds the specified
Resolver. - addResolver(Resolver) - Method in interface build.codemodel.dependency.injection.Context
-
Adds the specified
Resolver - addResolver(BiFunction) - Method in interface build.codemodel.dependency.injection.Context
- as(String) - Method in class build.codemodel.dependency.injection.AbstractBindingBuilder
- as(String) - Method in interface build.codemodel.dependency.injection.BindingBuilder
-
Configures the
BindingBuilderto createBindings injectable withDependencys that require named values, the name being specified using theNamedannotation. - asAllInterfaces() - Method in interface build.codemodel.dependency.injection.BindingBuilder
-
Registers a
Bindingof the bound value to each non-java.*interface in its type hierarchy. - asAllInterfaces(Predicate) - Method in interface build.codemodel.dependency.injection.BindingBuilder
B
- bind(Class) - Method in interface build.codemodel.dependency.injection.Binder
-
Creates a new fluent
BindingBuilderfor the specifiedClassofBinding, allowing definition, configuration and construction of aBinding. - bind(T) - Method in interface build.codemodel.dependency.injection.Context
-
Creates a
BindingBuilderpre-loaded with the specified instance value, enablingBindingBuilder.asAllInterfaces()andBindingBuilder.asAllInterfaces(Predicate)to register the value against every interface in its type hierarchy in a single call. - Binder - Interface in build.codemodel.dependency.injection
- Binding<T> - Interface in build.codemodel.dependency.injection
-
Defines a mechanism to resolve a
Dependencyfor injection. - BindingAlreadyExistsException - Exception Class in build.codemodel.dependency.injection
-
Indicates an attempt to create an
Bindingwhen one with the sameDependencyalready exists. - BindingAlreadyExistsException(String) - Constructor for exception class build.codemodel.dependency.injection.BindingAlreadyExistsException
-
Constructs a new
BindingAlreadyExistsException. - BindingBuilder<T> - Interface in build.codemodel.dependency.injection
-
A fluent builder for
Bindings. - BindingGraphContributor - Interface in build.codemodel.dependency.injection
-
Observes binding registration and dependency resolution events in an
InjectionContext. - BindingGraphTrait - Class in build.codemodel.dependency.injection
-
A
TraitonJDKCodeModelthat holds the binding graph for anInjectionContext. - BindingGraphTrait.UnsatisfiedDependency - Record Class in build.codemodel.dependency.injection
-
Describes a dependency from a registered binding to a type that is not registered as an explicit binding in the context.
- BindingKind - Enum Class in build.codemodel.dependency.injection
-
Classifies how a
Bindingproduces its value. - BindingNode - Record Class in build.codemodel.dependency.injection
-
A vertex in the Track 2 binding graph.
- BindingNode(JDKTypeDescriptor, Class, Class, BindingKind) - Constructor for record class build.codemodel.dependency.injection.BindingNode
-
Creates an instance of a
BindingNoderecord class. - bindings() - Method in class build.codemodel.dependency.injection.BindingGraphTrait
-
Returns all registered
BindingNodes in this graph. - bindScope(Class, Scope) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Registers a
Scopeimplementation for the specified scope annotation type. - bindSet(Class) - Method in interface build.codemodel.dependency.injection.Binder
-
Returns a
MultiBinderfor the specified element type, creating it if it does not yet exist. - build.codemodel.dependency.injection - module build.codemodel.dependency.injection
-
An implementation of the Jakarta Dependency Injection specification using the JDKCodeModel.
- build.codemodel.dependency.injection - package build.codemodel.dependency.injection
- buildTrait() - Method in interface build.codemodel.dependency.injection.BindingGraphContributor
-
Builds a
BindingGraphTraitfrom the events accumulated so far.
C
- call(ScopedValue.CallableOp) - Method in class build.codemodel.dependency.injection.ScopedValueScope
-
Enters the scope, executes
action, and returns its result. - ChainedResolver - Class in build.codemodel.dependency.injection
- CLASS - Enum constant in enum class build.codemodel.dependency.injection.BindingKind
-
An instance of a concrete class is created and injected on demand.
- ClassBinding<T> - Interface in build.codemodel.dependency.injection
- close() - Method in interface build.codemodel.dependency.injection.Context
-
Closes this
Context, invoking anyPreDestroylifecycle methods on instantiated singleton instances in reverse dependency order (dependents are destroyed before their dependencies). - codeModel() - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Obtains the
JDKCodeModelused byInjectionFramework. - compile(JDKCodeModel, CodeModel, TelemetryRecorder) - Method in class build.codemodel.dependency.injection.WiringReportCompiler
- concreteClass() - Method in interface build.codemodel.dependency.injection.ClassBinding
-
The concrete
Class. - ConfigurationResolver - Class in build.codemodel.dependency.injection
- configure(Binder) - Method in interface build.codemodel.dependency.injection.Module
-
Contributes bindings to the given
Binder. - configure(Consumer) - Method in interface build.codemodel.dependency.injection.Binder
- ConstructorInjectionPoint - Class in build.codemodel.dependency.injection
-
An
InjectionPointfor aConstructorDescriptor. - Context - Interface in build.codemodel.dependency.injection
- contributeBinding(BindingNode) - Method in interface build.codemodel.dependency.injection.BindingGraphContributor
-
Called each time a
Bindingis registered in anInjectionContext(including override registrations viatoOverriding). - contributeDependency(BindingNode, BindingNode, DependencyEdge) - Method in interface build.codemodel.dependency.injection.BindingGraphContributor
-
Called each time a
Dependencyis resolved during injection. - create() - Static method in class build.codemodel.dependency.injection.InjectionFramework
-
Creates an
InjectionFrameworkwith a default non-cachingJDKCodeModel. - create(Dependency) - Method in interface build.codemodel.dependency.injection.Context
-
Creates an instance of the type represented by the specified
Dependencywith values resolved from theContext. - create(Resolver...) - Static method in class build.codemodel.dependency.injection.ChainedResolver
-
Creates a new
ChainedResolver. - create(TypeUsage) - Method in interface build.codemodel.dependency.injection.Context
-
Creates an instance of the type represented by a
TypeUsagewith values resolved from theContext. - create(Class) - Method in interface build.codemodel.dependency.injection.Context
-
Creates an instance of the specified class by locating and injecting a constructor annotated with
Injectwith values resolved from theContext. - CyclicDependencyException - Exception Class in build.codemodel.dependency.injection
-
Thrown when a cyclic dependency has been detected between
Classes. - CyclicDependencyException(Dependency) - Constructor for exception class build.codemodel.dependency.injection.CyclicDependencyException
- CyclicDependencyException(Dependency, Dependency) - Constructor for exception class build.codemodel.dependency.injection.CyclicDependencyException
-
Constructs a
CyclicDependencyException. - CyclicDependencyException(List) - Constructor for exception class build.codemodel.dependency.injection.CyclicDependencyException
-
Constructs a
CyclicDependencyExceptionwith the full cycle path discovered by static graph analysis (e.g. fromContext.validate()).
D
- declaringModule() - Method in record class build.codemodel.dependency.injection.BindingNode
-
Returns the value of the
declaringModulerecord component. - DefaultOptionResolver - Class in build.codemodel.dependency.injection
-
A
Resolverthat instantiatesOptionsubclasses via theirDefault-annotated factory (no-arg constructor, static method, or static field) when no other resolver provides them. - dependencies() - Method in class build.codemodel.dependency.injection.ConstructorInjectionPoint
- dependencies() - Method in class build.codemodel.dependency.injection.FieldInjectionPoint
- dependencies() - Method in interface build.codemodel.dependency.injection.InjectionPoint
-
The
Dependencys for the parameters required to be injected at theInjectionPoint, in the order in which they are required. - dependencies() - Method in class build.codemodel.dependency.injection.MethodInjectionPoint
- dependenciesOf(BindingNode) - Method in class build.codemodel.dependency.injection.BindingGraphTrait
-
Returns the
BindingNodes that the given node directly depends on (its successors in the directed graph — the dependencies it requires). - dependency() - Method in class build.codemodel.dependency.injection.AbstractBinding
- dependency() - Method in interface build.codemodel.dependency.injection.Binding
-
The
Dependency. - dependency() - Method in record class build.codemodel.dependency.injection.DependencyEdge
-
Returns the value of the
dependencyrecord component. - dependency() - Method in exception class build.codemodel.dependency.injection.UnsatisfiedDependencyException
-
Obtains the
Dependencythat was not satisfied. - Dependency - Interface in build.codemodel.dependency.injection
-
Defines a
TypeUsagefor Dependency Injection with anInjector. - DependencyEdge - Record Class in build.codemodel.dependency.injection
-
An edge in the Track 2 binding graph.
- DependencyEdge(InjectionPoint, Dependency) - Constructor for record class build.codemodel.dependency.injection.DependencyEdge
-
Creates an instance of a
DependencyEdgerecord class. - dependentsOf(BindingNode) - Method in class build.codemodel.dependency.injection.BindingGraphTrait
-
Returns the
BindingNodes that directly depend on the given node (its predecessors in the directed graph — the bindings that require it).
E
- edge() - Method in record class build.codemodel.dependency.injection.BindingGraphTrait.UnsatisfiedDependency
-
Returns the value of the
edgerecord component. - empty(Class) - Static method in class build.codemodel.dependency.injection.OptionalResolver
-
Creates an empty
OptionalResolver. - equals(Object) - Method in class build.codemodel.dependency.injection.AbstractDependency
- equals(Object) - Method in record class build.codemodel.dependency.injection.BindingGraphTrait.UnsatisfiedDependency
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class build.codemodel.dependency.injection.BindingNode
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class build.codemodel.dependency.injection.DependencyEdge
-
Indicates whether some other object is "equal to" this one.
F
- fieldDescriptor() - Method in class build.codemodel.dependency.injection.FieldInjectionPoint
-
Obtains the
FieldDescriptorfor which theFieldInjectionPointwas created. - FieldInjectionPoint - Class in build.codemodel.dependency.injection
-
An
InjectionPointfor aFieldDescriptor. - findCycle() - Method in class build.codemodel.dependency.injection.BindingGraphTrait
-
Returns the full cycle path if a dependency cycle exists among the registered bindings, otherwise returns empty.
- findScope(JDKTypeDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Returns the registered
Scopefor the givenJDKTypeDescriptor, if the type carries a scope annotation that has been registered viaInjectionFramework.bindScope(Class, Scope). - findScopeEntry(JDKTypeDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Returns the registered scope entry (annotation class +
Scope) for the givenJDKTypeDescriptor, if the type carries a scope annotation that has been registered viaInjectionFramework.bindScope(Class, Scope). - from() - Method in record class build.codemodel.dependency.injection.BindingGraphTrait.UnsatisfiedDependency
-
Returns the value of the
fromrecord component.
G
- getInjectableDescriptor(JDKTypeDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Obtains the
InjectableDescriptorfor the specifiedJDKTypeDescriptor, using theJDKTypeDescriptorif necessary to establish one. - getInjectableDescriptor(Class) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Obtains the
InjectableDescriptorfor the specifiedClass, using theJDKCodeModelif necessary to establish one. - getMessage() - Method in exception class build.codemodel.dependency.injection.CyclicDependencyException
- getMessage() - Method in exception class build.codemodel.dependency.injection.ValidationException
- getQualifierAnnotationTypes(Traitable) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Determines the
AnnotationTypeUsages of the specifiedTraitablethat have theQualifiermeta-annotation. - graph() - Method in class build.codemodel.dependency.injection.BindingGraphTrait
-
Returns the underlying
WeightedGraphfor consumers that need direct algorithm access.
H
- hashCode() - Method in class build.codemodel.dependency.injection.AbstractDependency
- hashCode() - Method in record class build.codemodel.dependency.injection.BindingGraphTrait.UnsatisfiedDependency
-
Returns a hash code value for this object.
- hashCode() - Method in record class build.codemodel.dependency.injection.BindingNode
-
Returns a hash code value for this object.
- hashCode() - Method in record class build.codemodel.dependency.injection.DependencyEdge
-
Returns a hash code value for this object.
- hasQualifierAnnotation(JDKTypeDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Determines if the specified
JDKTypeDescriptor, usually for anAnnotation, is annotated withQualifier.
I
- IndependentDependency - Class in build.codemodel.dependency.injection
-
A
Dependencyindependently defined outside the scope of anInjectionPoint. - initializeEagerSingletons() - Method in interface build.codemodel.dependency.injection.Context
-
Pre-creates all
Singleton-scoped class bindings in dependency order, usingGraphs.parallelizableGroups(VertexGraph)to initialize independent groups in parallel. - inject(Object, Object[]) - Method in class build.codemodel.dependency.injection.ConstructorInjectionPoint
- inject(Object, Object[]) - Method in class build.codemodel.dependency.injection.FieldInjectionPoint
- inject(Object, Object[]) - Method in interface build.codemodel.dependency.injection.InjectionPoint
-
Inject into the
InjectionPointwith the necessary zero or more resolved actual parameterInjectionPoint.dependencies(). - inject(Object, Object[]) - Method in class build.codemodel.dependency.injection.MethodInjectionPoint
- inject(T) - Method in interface build.codemodel.dependency.injection.Injector
-
Resolves and injects values into the specified injectable object.
- InjectableDescriptor - Class in build.codemodel.dependency.injection
-
Defines information concerning the inject-ability of a
JDKTypeDescriptorwith theInjectionFramework. - InjectionException - Exception Class in build.codemodel.dependency.injection
-
A
RuntimeExceptionthrown when injection fails. - InjectionException() - Constructor for exception class build.codemodel.dependency.injection.InjectionException
-
Constructs a
InjectionException - InjectionException(String) - Constructor for exception class build.codemodel.dependency.injection.InjectionException
-
Constructs an
InjectionExceptionwith a specific message. - InjectionException(String, Throwable) - Constructor for exception class build.codemodel.dependency.injection.InjectionException
-
Constructs an
InjectionExceptioncaused by a specificThrowablewith a provided message. - InjectionException(Throwable) - Constructor for exception class build.codemodel.dependency.injection.InjectionException
-
Constructs an
InjectionExceptioncaused by a specificThrowable. - InjectionFailedException - Exception Class in build.codemodel.dependency.injection
-
An
InjectionExceptionthrown when injection into anInjectionPointfails. - InjectionFailedException(InjectionPoint) - Constructor for exception class build.codemodel.dependency.injection.InjectionFailedException
-
Constructs a
InjectionFailedException. - InjectionFailedException(InjectionPoint, String) - Constructor for exception class build.codemodel.dependency.injection.InjectionFailedException
-
Constructs an
InjectionFailedExceptionwith a specific message. - InjectionFailedException(InjectionPoint, String, Throwable) - Constructor for exception class build.codemodel.dependency.injection.InjectionFailedException
-
Constructs an
InjectionFailedExceptioncaused by a specificThrowablewith a provided message. - InjectionFailedException(InjectionPoint, Throwable) - Constructor for exception class build.codemodel.dependency.injection.InjectionFailedException
-
Constructs an
InjectionFailedExceptioncaused by a specificThrowable. - injectionFramework - Variable in class build.codemodel.dependency.injection.AbstractBindingBuilder
-
The
InjectionFramework. - InjectionFramework - Class in build.codemodel.dependency.injection
-
A
JDKCodeModel-based Adapter allowing the runtime discovery ofInjectionPoints and JSR-330-compliant Dependency Injection ofClasses andObjects - InjectionFramework(JDKCodeModel) - Constructor for class build.codemodel.dependency.injection.InjectionFramework
-
Constructs an
InjectionFramework. - injectionPoint() - Method in record class build.codemodel.dependency.injection.DependencyEdge
-
Returns the value of the
injectionPointrecord component. - injectionPoint() - Method in exception class build.codemodel.dependency.injection.InjectionFailedException
-
Obtains the
InjectionPointthat failed. - injectionPoint() - Method in class build.codemodel.dependency.injection.InjectionPointDependency
-
Obtains the
InjectionPointfor which theDependencywas established. - InjectionPoint - Interface in build.codemodel.dependency.injection
-
Describes a point with in a
JDKTypeDescriptorin whichDependencys may be injected. - InjectionPointDependency - Class in build.codemodel.dependency.injection
-
A
Dependencydefined by anInjectionPoint. - injectionPoints() - Method in class build.codemodel.dependency.injection.InjectableDescriptor
-
Obtains the
InjectionPoints defined for theJDKTypeDescriptor. - Injector - Interface in build.codemodel.dependency.injection
-
Resolves and injects values into fields, methods and/or constructors annotated with
Inject. - install(Module) - Method in interface build.codemodel.dependency.injection.Binder
- isInjectable() - Method in class build.codemodel.dependency.injection.InjectableDescriptor
-
Determines if there are
InjectionPoints defined for theJDKTypeDescriptor - isInjectionPoint(Traitable) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Determines if a
Traitablerepresents anInjectionPoint, which means it is non-static, non-abstractwith anAnnotationTypeUsageforInject. - isPostInject(MethodDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Determines if a
MethodDescriptorrepresents anPostInjectmethod, which means it is non-static, non-abstractwith anAnnotationTypeUsageforPostInject. - isPreDestroy(MethodDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Determines if a
MethodDescriptorrepresents aPreDestroymethod. - isProvides(MethodDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
- isSingleton(JDKTypeDescriptor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Determines if the specified
JDKTypeDescriptoris annotated as aSingleton.
K
- kind() - Method in record class build.codemodel.dependency.injection.BindingNode
-
Returns the value of the
kindrecord component.
M
- MethodInjectionPoint - Class in build.codemodel.dependency.injection
-
An
InjectionPointfor aMethod. - Module - Interface in build.codemodel.dependency.injection
-
A reusable unit of binding configuration.
- Modules - Class in build.codemodel.dependency.injection
-
Factory methods for composing
Modules. - MULTI - Enum constant in enum class build.codemodel.dependency.injection.BindingKind
-
A multibinding set — produced by
Binder.bindSet(Class). - MultiBinder<T> - Interface in build.codemodel.dependency.injection
-
Accumulates multiple bindings for the same type, making them injectable as
Set,Collection,Iterable,Stream, orList.
N
- newContext() - Method in interface build.codemodel.dependency.injection.Context
- newContext() - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Creates a new empty
Context. - newContext(Module...) - Method in class build.codemodel.dependency.injection.InjectionFramework
- newContext(Resolver...) - Method in class build.codemodel.dependency.injection.InjectionFramework
- NOOP - Static variable in interface build.codemodel.dependency.injection.BindingGraphContributor
-
No-op implementation used until Track 2 installs a real contributor.
O
- of(Configuration) - Static method in class build.codemodel.dependency.injection.ConfigurationResolver
-
Creates a
ConfigurationResolver. - of(Dependency, T) - Static method in interface build.codemodel.dependency.injection.ValueBinding
-
Creates a
ValueBindingfor the specifiedDependencyand value. - of(InjectionFramework) - Static method in class build.codemodel.dependency.injection.DefaultOptionResolver
-
Creates a
DefaultOptionResolver. - of(InjectionPoint, Dependency) - Static method in class build.codemodel.dependency.injection.InjectionPointDependency
-
Creates a
InjectionPointDependency. - of(TypeUsage, Function) - Static method in class build.codemodel.dependency.injection.IndependentDependency
-
Creates a
IndependentDependencyfor the specifiedTypeUsage. - of(JDKTypeDescriptor, ConstructorDescriptor, Function) - Static method in class build.codemodel.dependency.injection.ConstructorInjectionPoint
-
Creates a
ConstructorInjectionPoint. - of(JDKTypeDescriptor, FieldDescriptor, Function) - Static method in class build.codemodel.dependency.injection.FieldInjectionPoint
-
Creates a
FieldInjectionPoint. - of(JDKTypeDescriptor, MethodDescriptor, Function) - Static method in class build.codemodel.dependency.injection.MethodInjectionPoint
-
Creates a
MethodInjectionPoint. - of(JDKTypeDescriptor, Stream, Stream, Stream) - Static method in class build.codemodel.dependency.injection.InjectableDescriptor
-
Creates a new
InjectableDescriptorfor the specifiedJDKTypeDescriptor. - of(JDKCodeModel) - Static method in class build.codemodel.dependency.injection.SystemPropertyResolver
-
Creates a new
SystemPropertyResolverfor the specifiedJDKCodeModel. - of(Class, T) - Static method in class build.codemodel.dependency.injection.QualifiedResolver
-
Creates a new
QualifiedResolverthat resolvesInjectableDependencys to the provided non-nullObjectwhen theDependency.typeUsage()is annotated with the specifiedAnnotationclass. - of(Class, Supplier) - Static method in class build.codemodel.dependency.injection.OptionalResolver
-
Creates an
OptionalResolver. - of(Class, O) - Static method in class build.codemodel.dependency.injection.OptionalResolver
-
Creates an
OptionalResolver. - of(Object, InjectionFramework) - Static method in class build.codemodel.dependency.injection.ProvidesResolver
-
Creates a
ProvidesResolverfor the specified provider object. - of(Function) - Static method in interface build.codemodel.dependency.injection.Resolver
- of(Predicate, T) - Static method in class build.codemodel.dependency.injection.QualifiedResolver
-
Creates a new
QualifiedResolverthat resolvesInjectableDependencys to the provided non-nullObjectwhen theDependency.typeUsage()satisfies specifiedAnnotationTypeUsagePredicate. - OptionalResolver<T> - Class in build.codemodel.dependency.injection
- override(Module, Module) - Static method in class build.codemodel.dependency.injection.Modules
P
- PostInject - Annotation Interface in build.codemodel.dependency.injection
- postInjectionMethods() - Method in class build.codemodel.dependency.injection.InjectableDescriptor
- PreDestroy - Annotation Interface in build.codemodel.dependency.injection
-
Marks a zero-arg method to be invoked by
Context.close()when the owningContextis closed. - preDestroyMethods() - Method in class build.codemodel.dependency.injection.InjectableDescriptor
- problems() - Method in exception class build.codemodel.dependency.injection.ValidationException
-
Returns the list of problems detected during validation.
- ProviderResolver - Class in build.codemodel.dependency.injection
- ProviderResolver(InjectionFramework, Context) - Constructor for class build.codemodel.dependency.injection.ProviderResolver
-
Constructs a
ProviderResolverfor a specifiedContext - Provides - Annotation Interface in build.codemodel.dependency.injection
-
Defines a zero-args non-static non-void method whose return value is made available for injection via a
ProvidesResolver. - ProvidesResolver - Class in build.codemodel.dependency.injection
Q
- QualifiedResolver<T> - Class in build.codemodel.dependency.injection
-
A
Resolverto resolve to a specific non-nullObjectif and only if a requestedDependencysatisfies anAnnotationTypeUsagePredicate.
R
- resolve(Dependency) - Method in class build.codemodel.dependency.injection.ChainedResolver
- resolve(Dependency) - Method in class build.codemodel.dependency.injection.ConfigurationResolver
- resolve(Dependency) - Method in class build.codemodel.dependency.injection.DefaultOptionResolver
- resolve(Dependency) - Method in class build.codemodel.dependency.injection.OptionalResolver
- resolve(Dependency) - Method in class build.codemodel.dependency.injection.ProviderResolver
- resolve(Dependency) - Method in class build.codemodel.dependency.injection.ProvidesResolver
- resolve(Dependency) - Method in class build.codemodel.dependency.injection.QualifiedResolver
- resolve(Dependency) - Method in interface build.codemodel.dependency.injection.Resolver
-
Attempts to resolve a value for the type specified by the
Dependency. - resolve(Dependency) - Method in class build.codemodel.dependency.injection.SystemPropertyResolver
- resolver() - Method in interface build.codemodel.dependency.injection.Context
- Resolver<T> - Interface in build.codemodel.dependency.injection
-
A facility to resolve
Bindings forDependencys required for injection. - run(Runnable) - Method in class build.codemodel.dependency.injection.ScopedValueScope
-
Enters the scope and executes
action.
S
- scope() - Method in record class build.codemodel.dependency.injection.BindingNode
-
Returns the value of the
scoperecord component. - scope(ValueBinding) - Method in interface build.codemodel.dependency.injection.Scope
-
Wraps the given unscoped
ValueBindingin a scopedBinding. - scope(ValueBinding) - Method in class build.codemodel.dependency.injection.ScopedValueScope
- Scope - Interface in build.codemodel.dependency.injection
-
Controls the lifecycle and sharing of instances produced by a
Binding. - ScopeAnnotation - Annotation Interface in build.codemodel.dependency.injection
-
Meta-annotation that marks an annotation as a scope annotation.
- ScopedValueScope - Class in build.codemodel.dependency.injection
-
A
Scopebacked by aScopedValue. - ScopedValueScope() - Constructor for class build.codemodel.dependency.injection.ScopedValueScope
- setBindingGraphContributor(BindingGraphContributor) - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Installs a
BindingGraphContributorthat will be notified of every binding registration and dependency resolution for all contexts created by this framework. - signature() - Method in interface build.codemodel.dependency.injection.Dependency
-
Obtains the unique signature for the
Dependency, consisting of theTypeNameand anyAnnotationTypeUsages that have been annotated with theQualifiermeta-annotation. - signature() - Method in class build.codemodel.dependency.injection.IndependentDependency
- signature() - Method in class build.codemodel.dependency.injection.InjectionPointDependency
- snapshot(Path) - Method in interface build.codemodel.dependency.injection.Context
-
Builds a
BindingGraphTraitfrom the current contributor state, attaches it to the framework'sJDKCodeModel, and writes a human-readable wiring report tooutputPath. - SUPPLIER - Enum constant in enum class build.codemodel.dependency.injection.BindingKind
-
A
Supplierproduces the value. - SystemProperty - Annotation Interface in build.codemodel.dependency.injection
-
Specifies that a particular system property value is required for
Injection, optionally using aSystemProperty.Defaultvalue if the system property is not defined. - SystemProperty.Default - Annotation Interface in build.codemodel.dependency.injection
-
Specifies that a default value for a
SystemPropertythat may be coerced and/or used forInjection. - SystemPropertyResolver - Class in build.codemodel.dependency.injection
-
A
Resolverof values forSystemPropertyannotatedInjection points, that usesSystem.getProperties()to resolve values.
T
- to(Class) - Method in interface build.codemodel.dependency.injection.BindingBuilder
- to(Supplier) - Method in interface build.codemodel.dependency.injection.BindingBuilder
- to(T) - Method in interface build.codemodel.dependency.injection.BindingBuilder
-
Creates a
Bindingthat uses the specified value for injection. - toOverriding(Class) - Method in interface build.codemodel.dependency.injection.BindingBuilder
- toOverriding(Supplier) - Method in interface build.codemodel.dependency.injection.BindingBuilder
- toOverriding(T) - Method in interface build.codemodel.dependency.injection.BindingBuilder
- toString() - Method in class build.codemodel.dependency.injection.AbstractDependency
- toString() - Method in record class build.codemodel.dependency.injection.BindingGraphTrait.UnsatisfiedDependency
-
Returns a string representation of this record class.
- toString() - Method in record class build.codemodel.dependency.injection.BindingNode
-
Returns a string representation of this record class.
- toString() - Method in record class build.codemodel.dependency.injection.DependencyEdge
-
Returns a string representation of this record class.
- toString() - Method in exception class build.codemodel.dependency.injection.InjectionFailedException
- typeDescriptor() - Method in record class build.codemodel.dependency.injection.BindingNode
-
Returns the value of the
typeDescriptorrecord component. - typeDescriptor() - Method in class build.codemodel.dependency.injection.ConstructorInjectionPoint
- typeDescriptor() - Method in class build.codemodel.dependency.injection.FieldInjectionPoint
- typeDescriptor() - Method in class build.codemodel.dependency.injection.InjectableDescriptor
-
Obtains the
JDKTypeDescriptorfor which theInjectableDescriptorwas established. - typeDescriptor() - Method in interface build.codemodel.dependency.injection.InjectionPoint
-
The
JDKTypeDescriptorin which theInjectionPointis defined - typeDescriptor() - Method in class build.codemodel.dependency.injection.MethodInjectionPoint
- typeUsage - Variable in class build.codemodel.dependency.injection.AbstractBindingBuilder
-
The
TypeUsage. - typeUsage() - Method in class build.codemodel.dependency.injection.AbstractBindingBuilder
-
Obtains the currently configured
TypeUsagefor theBindingBuilder. - typeUsage() - Method in interface build.codemodel.dependency.injection.Dependency
-
Obtains the
TypeUsagefor theDependency. - typeUsage() - Method in class build.codemodel.dependency.injection.IndependentDependency
-
Obtains the
TypeUsagefor theIndependentDependency. - typeUsage() - Method in class build.codemodel.dependency.injection.InjectionPointDependency
U
- unsatisfiedDependencies() - Method in class build.codemodel.dependency.injection.BindingGraphTrait
-
Returns dependency edges where the satisfying binding was not registered as an explicit binding in the context (auto-resolved or untracked types).
- UnsatisfiedDependency(BindingNode, DependencyEdge) - Constructor for record class build.codemodel.dependency.injection.BindingGraphTrait.UnsatisfiedDependency
-
Creates an instance of a
UnsatisfiedDependencyrecord class. - UnsatisfiedDependencyException - Exception Class in build.codemodel.dependency.injection
-
Thrown when the value for a
Dependencycan not be resolved for injection. - UnsatisfiedDependencyException(Dependency) - Constructor for exception class build.codemodel.dependency.injection.UnsatisfiedDependencyException
-
Constructs an
UnsatisfiedDependencyException. - UnsatisfiedDependencyException(Dependency, String) - Constructor for exception class build.codemodel.dependency.injection.UnsatisfiedDependencyException
-
Constructs an
UnsatisfiedDependencyException. - UnsatisfiedDependencyException(Dependency, String, Throwable) - Constructor for exception class build.codemodel.dependency.injection.UnsatisfiedDependencyException
-
Constructs an
UnsatisfiedDependencyException. - UnsatisfiedDependencyException(Dependency, Throwable) - Constructor for exception class build.codemodel.dependency.injection.UnsatisfiedDependencyException
-
Constructs an
UnsatisfiedDependencyException.
V
- validate() - Method in interface build.codemodel.dependency.injection.Context
-
Validates the current set of registered bindings before any objects are created.
- ValidationException - Exception Class in build.codemodel.dependency.injection
-
Thrown by
Context.validate()when one or more validation problems are found. - ValidationException(List) - Constructor for exception class build.codemodel.dependency.injection.ValidationException
-
Constructs a
ValidationExceptionwith the specified list of problems. - value() - Element in annotation interface build.codemodel.dependency.injection.SystemProperty.Default
-
The default value.
- value() - Element in annotation interface build.codemodel.dependency.injection.SystemProperty
-
The name of the system property.
- value() - Method in interface build.codemodel.dependency.injection.ValueBinding
-
Obtains the non-
nullvalue. - VALUE - Enum constant in enum class build.codemodel.dependency.injection.BindingKind
-
A pre-built value is returned directly (e.g.
- ValueBinding<T> - Interface in build.codemodel.dependency.injection
-
A
Bindingthat produces the same non-nullvalue when requested. - valueOf(String) - Static method in enum class build.codemodel.dependency.injection.BindingKind
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class build.codemodel.dependency.injection.BindingKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WiringReportCompiler - Class in build.codemodel.dependency.injection
-
A
Compilerthat reads theBindingGraphTraitfrom theJDKCodeModeland emits a human-readable wiring report. - WiringReportCompiler(Path) - Constructor for class build.codemodel.dependency.injection.WiringReportCompiler
-
Constructs a
WiringReportCompilerthat writes its output tooutputPath. - with(AnnotationTypeUsage) - Method in class build.codemodel.dependency.injection.AbstractBindingBuilder
- with(AnnotationTypeUsage) - Method in interface build.codemodel.dependency.injection.BindingBuilder
- with(Annotation) - Method in class build.codemodel.dependency.injection.AbstractBindingBuilder
- with(Annotation) - Method in interface build.codemodel.dependency.injection.BindingBuilder
- with(Class) - Method in class build.codemodel.dependency.injection.AbstractBindingBuilder
- with(Class) - Method in interface build.codemodel.dependency.injection.BindingBuilder
-
Configures the
BindingBuilderto createBindings requiring the specified MarkerQualifierAnnotation. - withBindingGraph() - Method in class build.codemodel.dependency.injection.InjectionFramework
-
Installs a
GraphBuildingContributorand returns this framework for fluent chaining.
All Classes and Interfaces|All Packages|Serialized Form