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

DefaultConfigurationInjector does not inject into superclasses' fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3-incubating
    • 0.3-incubating
    • Extensions
    • None

    Description

      The current implementation of tamaya-inject won't inject configuration into superclasses' values.
      Suppose a class A with some @Config annotated members and a class B which extends A. Then ConfigurationInjection.getConfigurationInjector().configure(instanceOfB); won't configure any fields annotated in A.
      Also, because the runtime time is used to determine what to inject, there is no easy way to get around this from the user API.

      Attachments

        1. TAMAYA-197.patch
          7 kB
          Thomas Liebetraut

        Activity

          People

            anatole Anatole Tresch
            tommie-lie Thomas Liebetraut
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified