dimanche 16 août 2015

Designing a Java application Mid Tier for global with localized BL logic

We are working on an application which we are planning to launch in couple of countries to start with. Application (Business Validations, Logics, fields) will have to be customized for each country. But most of the core functionalities will remain intact. Wanted to know the best suitable design which can help us in this regard. Below are couple of options:

  1. One BL class for all regions : This has multiple drawbacks:
    • Too many locale specific checks
    • Class will grow big and soon reach out of our hand to maintain
    • Huge Regression impact
  2. Have a Core BL class which will capture the rules applicable for global. Define subclasses for each region. Use Spring for loading the BL classes based on the region.

Currently we are thinking #2 will be the best option for us. Wanted all of your ideas, thoughts and comments for handling this in a better way.

Regards, Manjunath

Aucun commentaire:

Enregistrer un commentaire