I have an object called Fund that has many attributes that needs to be populated with data. I also have many DataSource classes that I will be calling into to populate values into the Fund object. Is there a design pattern to solve the above case where I keep passing partially populated Fund object across multiple data sources that will populate attributes in the Fund object. I am looking to implement it in Java.
- Additionally is it good practice to pass the partially built Fund object across multiple classes.
- Also how can I ensure loose coupling between the Fund object and multiple datasources.
Aucun commentaire:
Enregistrer un commentaire