AOP
-
Multitenant Application – Part 2: Context driven dependency injection
Further to the previous post, object creation based on the current context is a cross cutting concern, so it should be dragged outside the core business logic. We have already tried creating a factory method to give us the required implementation. We will now replace this with a container to allow Inversion Of Control. The most simplest Continue reading
-
Multitenant Application – Part 1: How to write Multitenant or Regional code without if or switch statements?
Have you seen code like this and wonder how to make it cleaner? I often see a web of if/then or switch statements sprawled out to various parts of an application to provide a country or client specific code paths. Such conditional statements have their counterparts in other layers of the application. These corresponding conditional statements are consistently required to be Continue reading
