Dependency injection

Wiring an object's collaborators from outside it, so a class can be swapped for another implementation without editing the code that uses it.

Overview

SAP SHIPS

No core answer is documented.

There is no container to ship. What the language has for replacing a collaborator is test seams, which swap a block of production code for an injection written in a test class and nowhere else. Swapping it only for the run is the concern of testing, not this capability.

Artifacts2

2 of 2 artifacts
ArtifactSignals
Packages2
bothzoli/ABAP-IoC-ContainerInversion-of-control container for ABAP
Signals
Quiet
swixfort/Sdw.Abap.DiA dependency-injection container for ABAP: register classes or interfaces, then resolve an object with its dependencies already constructed.
Signals
Not reachable

Details

Coverage
statecommunity only, ABAP
assessed
For your agent
Ref
capability:dependency-injection
JSON
/capabilities/dependency-injection.json
MCP
Connecting an agent