Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-34

Enabling overriding configurations

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 0.1-incubating
    • Component/s: API, Core
    • Labels:
      None

      Description

      When accessing configuration templates, there might be use cases, where programmatic code wants to explicitly override some of the config that is provided by default. Similarly there might be use cases, where parts of the configuration is not managed by the Tamaya ConfigurationManager. When injecting configuration into beans, accessing templates as well as resolving expressions, it must be possible to provide overriding configurations as well.
      Similarly this would also simplify testing a lot.

      This would be easily done by the following changes in Configuration (and subsequent elements in the chain):

      public void configure(Object o)
      public void resolveExpressions(String expression) 
      public <T> T createTemplate(Class<T> templateType);
      -> 
      public void configure(Object o, Configuration... configs);
      public void resolveExpression(String expression, Configuration... configs);
      public <T> T createTemplate(Class<T> templateType, Configuration... configs);
      

        Attachments

          Activity

            People

            • Assignee:
              anatole Anatole Tresch
              Reporter:
              anatole Anatole Tresch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: