Hi All
We have a
java app which follows the typical layered approach (controller - business - data access - OR Mapping).
My question is about how to go about the business layer in order to achieve maximum modularity.
The business logic has to cater to different types of business scenario (say bizType1, bizType2 and bizType3) and each request to the app will be one of them. Each bizType will have a custom java object input type so we have inp1, inp2 and inp3 respectively. All the input types inp1,inp2 and inp3 inherit from a common base class (inp).
We have some business logic common to all biz types as well as custom business logic to these types so we want to modularise the common behavior. Should we create a base class for the same or we should not be having a base class approach in the business layer.
Should we have separate business logic classes representing each biztype or we should be handling it within one class.
Let me know your viewpoints.
Uday