Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12062

add LazyBindings.putOnly

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • API 2.27.2
    • API 2.27.6
    • API
    • None

    Description

      The LazyBindings support the lazy evaluation of values to avoid the potential costly resolution of values at provisioning time (the values are only resolved when requested via get).

      But if for some reasons the same key is put twice into a LazyBinding, the second call to put(key, value) resolves the already provided value and returns it, but this return value of put is often ignored.

      So the LazyBindings should have a putOnly(key,value) method, which behaves the same way as the existing put, but does not return the (resolved) previous value. This can be used by all providers which just push data into the LazyBindings, but are not interested in any value returned by the normal put.

      Attachments

        Issue Links

          Activity

            People

              joerghoh Joerg Hoh
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: