Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39434

Allow bean overrides to be loaded from sakai.home/override

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 11.0
    • Component/s: Kernel
    • Previous Issue Keys:
      KNL-1242

      Description

      Currently some to configure some parts of Sakai notably the providers, you need to rebuild the source. We should allow bean definitions to be overridden with configuration from outside the build. Parts of the providers can't configured using the property@spring.bean.id syntax as they need maps and other complex objects. I'd like to suggest we load additional bean definitions from

      {sakai.home}

      /override/

      {component-name}

      .xml if the file exists.

      There is already some logic in the components loader that adds the demo files to the list of files loaded if the system property is set.

      This isn't the correct long term solution as we should be making things configurable through the server configuration service, but as an interim step until we get there this makes peoples lives easier and means they don't have to rebuild sakai and maintain as many local patches.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                buckett Matthew Buckett
                Reporter:
                buckett Matthew Buckett
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code