Package be.imgn.inject
@NullMarked
package be.imgn.inject
Public API of the
be.imgn.inject dependency injection framework.-
ClassDescriptionMarks a caller-supplied parameter of an assisted recipe: an
@Injectconstructor or@Providesmethod containing one becomes reachable only through anAssistedFactorymethod, which supplies these parameters at call time while the container resolves the rest.Marks a factory-interface method the annotation processor implements.Thrown when a dependency cycle is detected at resolution time.Registers the annotated bean only when a property matches.Meta-annotation marking an annotation as a registration condition.Thrown when a conditioning annotation has no registeredCondition, or more than one.Observes the instances the container builds.Marks aProvidesmethod as the fallback recipe for its key: the binding is used only when no other live binding satisfies the same key.Thrown when two factories expose the sameKey.Narrows the keys a bean is exposed under to exactly the listed types, replacing the default (the bean type plus all of its supertypes).Marks a constructor, method, or field as an injection point.Meta-annotation marking an annotation as a plugin-handled injecting annotation.Base type for all runtime injection failures.The user-facing entry point for obtaining instances and providers.Builds anInjectorthat overlays explicit instance bindings on top of the discovered graph.Builds a childInjector: explicit instance and provider bindings layered over the parent's graph.Meta-annotation marking an annotation as an interception trigger.Thrown when an interceptor throws something the intercepted method does not declare, or returns an illegal value.Thrown when an intercepting annotation is in use but no bean is annotatedInterceptsfor it.Marks a bean as theMethodInterceptorhandling one intercepting annotation.Contributes the annotated bean (or@Providesresult) to theMap<String, value>binding underIntoMap.key(), instead of binding it under its own keys.Contributes the annotated bean (or@Providesresult) to theSet<value>binding instead of binding it under its own keys.Key<T>A binding identity: aTypeoptionally combined with a qualifier annotation.Built-in string qualifier.Factories for built-in qualifier annotation instances.Marks the method invoked once the bean is fully injected — after constructor,@Injectmethods, and@Injectfields.Marks the method invoked when the owning injector closes: for a bean of a child-local scope, the child injector that hosts it.Provider<T>The core abstraction: supplies an instance ofTon demand.Marks a method that supplies an instance of its return type.Meta-annotation marking an annotation as a qualifier (contributes to aKey).Thrown when a scope cannot apply: more than oneScopefor a scoping annotation, a bean of a child-local scope resolved where no injector hosts that scope, or a child-local bean contributing to a collection.Meta-annotation marking an annotation as a scope selector.Built-in scope: exactly one instance per injector.TypeLiteral<T>Represents a generic typeT.Factories for the parameterizedTypes used as collection binding keys.Thrown when no factory can satisfy a requestedKey.