[jira] [Updated] (SLING-12062) add LazyBindings.putOnly

2024-06-13 Thread Joerg Hoh (Jira)


 [ 
https://issues.apache.org/jira/browse/SLING-12062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh updated SLING-12062:
--
Fix Version/s: API 2.27.6
   (was: API 2.27.4)

> add LazyBindings.putOnly
> 
>
> Key: SLING-12062
> URL: https://issues.apache.org/jira/browse/SLING-12062
> Project: Sling
>  Issue Type: Task
>  Components: API
>Affects Versions: API 2.27.2
>Reporter: Joerg Hoh
>Assignee: Joerg Hoh
>Priority: Major
> Fix For: API 2.27.6
>
>
> 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}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (SLING-12062) add LazyBindings.putOnly

2024-05-30 Thread Joerg Hoh (Jira)


 [ 
https://issues.apache.org/jira/browse/SLING-12062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh updated SLING-12062:
--
Fix Version/s: API 2.27.4

> add LazyBindings.putOnly
> 
>
> Key: SLING-12062
> URL: https://issues.apache.org/jira/browse/SLING-12062
> Project: Sling
>  Issue Type: Task
>  Components: API
>Affects Versions: API 2.27.2
>Reporter: Joerg Hoh
>Assignee: Joerg Hoh
>Priority: Major
> Fix For: API 2.27.4
>
>
> 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}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (SLING-12062) add LazyBindings.putOnly

2024-02-26 Thread Joerg Hoh (Jira)


 [ 
https://issues.apache.org/jira/browse/SLING-12062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh updated SLING-12062:
--
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}}.



  was:
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 potential returned by the normal 
{{put}}.




> add LazyBindings.putOnly
> 
>
> Key: SLING-12062
> URL: https://issues.apache.org/jira/browse/SLING-12062
> Project: Sling
>  Issue Type: Task
>  Components: API
>Affects Versions: API 2.27.2
>Reporter: Joerg Hoh
>Priority: Major
>
> 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}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (SLING-12062) add LazyBindings.putOnly

2023-11-08 Thread Joerg Hoh (Jira)


 [ 
https://issues.apache.org/jira/browse/SLING-12062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh updated SLING-12062:
--
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 potential returned by the normal 
{{put}}.



  was:
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. 




> add LazyBindings.putOnly
> 
>
> Key: SLING-12062
> URL: https://issues.apache.org/jira/browse/SLING-12062
> Project: Sling
>  Issue Type: Task
>  Components: API
>Affects Versions: API 2.27.2
>Reporter: Joerg Hoh
>Priority: Major
>
> 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 potential returned 
> by the normal {{put}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)