You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Aleksandar Vidakovic (Jira)" <ji...@apache.org> on 2022/11/07 21:54:00 UTC

[jira] [Created] (FINERACT-1797) Remove tenant references from cache annotations

Aleksandar Vidakovic created FINERACT-1797:
----------------------------------------------

             Summary: Remove tenant references from cache annotations
                 Key: FINERACT-1797
                 URL: https://issues.apache.org/jira/browse/FINERACT-1797
             Project: Apache Fineract
          Issue Type: Improvement
            Reporter: Aleksandar Vidakovic
            Assignee: Aleksandar Vidakovic
             Fix For: 1.9.0


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).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)