- Method injection in Spring allows setting a child bean's scope to "prototype" while keeping the parent bean's scope as "singleton". This is done by injecting a factory method for the child bean into the parent bean.
- An example is provided of shared validation code that needed reinstantiation. Method injection was used to set the validation bean to "prototype" while keeping the parent bean scope as "singleton".
- Benefits include avoiding needless object recreation if all beans were "prototype", as well as increased testability by isolating stateful objects.