How do I show Dependency Injection of an object or class in a UML class diagram?
Martin Fowler shows it like this:
You display class dependencies by using a dashed line with a pointed arrow that points from the client model element to the supplier model element.
I think that how you provide the dependencies to the client is irrelevent at the UML level.
First of all, UML and DI are very much orthogonal concepts:
Thus, UML diagrams don't really have a mechanism to describe DI. However, I'm sure if DI is involved, you would see certain patterns evolve, including (but not limited to):