|
Answer» ► Setter Injection:
Setter-based DI is realized by calling setter methods on your beans after invoking a no-argument constructor or no-argument static factory METHOD to instantiate your BEAN.
► Constructor Injection:
Constructor-based DI is realized by invoking a constructor with a number of arguments, each representing a COLLABORATOR. ► Setter Injection:
Setter-based DI is realized by calling setter methods on your beans after invoking a no-argument constructor or no-argument static factory method to instantiate your bean. ► Constructor Injection:
Constructor-based DI is realized by invoking a constructor with a number of arguments, each representing a collaborator.
|