softwaremill / softwaremill/macwire
Transitive dependencies
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.3k
- Forks
- 77
- Avg merge
- 9m
- Merged PRs (30d)
- 4
Description
If class A depends on B, which depends on and I have a C, can I instantiate an A without also wiring up a B? In other words, would it be possible for this:
val c: C = ...
val a = wire[A]
to generate this?
val c: C = ...
val _macwire_b = new B(c)
val a = new A(b)
Similarly, if I don't have a C in scope but C has a no-args constructor, can macwire instantiate that as well? That is, this:
val a = wire[A]
would become:
val a = new A(new B(new C))
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no source files or tests. Start by tracing the wire[A] entry point and the A, B, and C examples to understand current dependency resolution. Done means transitive dependencies are generated from in-scope values and no-argument constructors, matching both requested examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100