Command pattern in spring #39850
Labels
for: stackoverflow
A question that's better suited to stackoverflow.com
status: invalid
An issue that we don't feel is valid
Hi!!
I am working in a project that use the command pattern, But the implementation of its use a combination between field injection and constructor injection.
For example
This command is called using BeanFactory.getBean(CustomCommand.class, "string").
I did see the next video https://www.youtube.com/watch?v=_IPhpgzpm9w where the implementation use the Factory desing pattern and the custom command are'nt the
@Component.
Why shouldn't I use the first approach?
The text was updated successfully, but these errors were encountered: