This is basically a JSR-330 compliant variant of Spring's good old
ObjectFactoryCreatingFactoryBean. It can be used for traditional
external dependency injection configuration that targets a property or
constructor argument of type javax.inject.Provider, as an
alternative to JSR-330's @Inject annotation-driven approach.
public void setTargetBeanName(java.lang.String targetBeanName)
Set the name of the target bean.
The target does not have to be a non-singleton bean, but realistically
always will be (because if the target bean were a singleton, then said singleton
bean could simply be injected straight into the dependent object, thus obviating
the need for the extra level of indirection afforded by this factory approach).
public void afterPropertiesSet()