My understanding is that it seems very similar to Abstract Factory.
Note:
The executor interface:
public interface Executor {
public void execute();
}
And then there is an Executors class containing static factories for various Executor implementations.
Aucun commentaire:
Enregistrer un commentaire