Add automatic singleton scoping based on the parameter injection.