Hi,
what I'm basically have been looking for was a comfortable way of using a factory
where the factory does not know directly the implementation.
Main point is that in my project I have very strict rules from Checkstyle and
PMD complaining if one class does know too many others.
Now looking at the tutorial from your side - coming to my questions - I wondered
about at least two things:
- The whole thing does work only if I specify the list of modules at the component annotation. Is this not the opposite to what I mentioned about loosely coupled classes? At least from tutorial there is one module per command ... Isn't there a way to work without that?
- In the tutorial the command is created once and then used to route the input to that command. How to change that when I need a new command of same type for each routing operation? (in my case I have tasks being read from a document and I need the "new Task" instance mechanism on each task I find in the document depending on the type of task.
I think that it's for the beginning :)
Kind Regards,
Thomas