Implements Dependency Injection for Components.