Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1797

Remove tenant references from cache annotations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 1.10.0
    • 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).

      Attachments

        Activity

          People

            aleks Aleksandar Vidakovic
            aleks Aleksandar Vidakovic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: