DependencyInjectionConfig

Configuration class for dependency injection settings and behavior customization.

This class allows customization of the reflection mechanism, the dependency provider, and various behaviors of the dependency injection framework.

Report a problem

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Determines how conflicts between dependency declarations are handled. Defaults to DefaultConflictPolicy in normal mode or IgnoreConflicts in test mode.

Link copied to clipboard

Defines how type covariance is handled when resolving dependencies. Defaults to DefaultKeyCovariance.

Link copied to clipboard

A callback invoked when a duplicate dependency is detected. Defaults to throwing a DuplicateDependencyException.

Link copied to clipboard

A callback invoked when the application stops. Defaults to closing all instances of AutoCloseable.

Link copied to clipboard

Specifies the mechanism used to create new instances of dependencies via reflection. Defaults to DefaultReflection.

Functions

Link copied to clipboard

Include an additional source for dependencies.