Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
At the moment pretty much all "@Cache" annotations contain a reference to "
org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil" to keep the cache separated by tenant. This makes the code quite unreadable, but spreads the use of this util class all over the place and makes it quite impossible to refactor the tenant mechanics.
As a preparation for this (=simplifying the tenant mechanics) the thread context utility class will be removed from the cache annotations and replaced with a central Spring Java config. This should also make it easier to split up the code base into separate modules (one less dependency).