Which design pattern would be most appropriate to use in this integration?

Your company uses a payroll application that was developed using Java technologies. The
company has acquired another company and plans to integrate its payroll process in existing
application. You have been asked to implement this integration. You observe that the business
logic adopted to calculate the payroll is different in both companies.
Which design pattern would be most appropriate to use in this integration?

Your company uses a payroll application that was developed using Java technologies. The
company has acquired another company and plans to integrate its payroll process in existing
application. You have been asked to implement this integration. You observe that the business
logic adopted to calculate the payroll is different in both companies.
Which design pattern would be most appropriate to use in this integration?

A.
Strategy

B.
Payload Extractor

C.
Fly Weight

D.
Composite

E.
Service Locator



Leave a Reply 8

Your email address will not be published. Required fields are marked *


DonkeyNuts

DonkeyNuts

Wrong. I think this is Strategy Pattern. Two different ‘strategies’ to calculate payroll

Juaan The One

Juaan The One

A –> We want “to integrate its payroll process in existing application” but bussiness process is diferent.

We can have a common Interface with differnt implementations(algorithms). the strategy pattern is a behavioral software design pattern that enables selecting an algorithm at runtime.