vendredi 26 février 2016

Java Need Better design pattern for step based execution

I have bulk list of values need to find their details from different sources by following simple rules like

  1. find at source1 if not found goto source2 till sourceN.
  2. If couldn't find at any source then apply some defaults.

at each source I may find some values, what ever the values are not found at that particular source I need to search them at another source I need to continue this till I find details for all values.

so trying to find better design and algorithm to implement this.

Any answers really will really helpful.

Aucun commentaire:

Enregistrer un commentaire