Use of 'inject' and 'injectIfBound' methods.