We need a way for a resource provider to provide this object based on a
resource. And adaptTo is exactly the mechanism for this. As this
adaption is implemented by a provider, there is no startup ordering
problem etc as some experience with more custom adaptions.
So in this case, on the same resource a call to adaptTo will most likely
always give the same result, either null or the object.
Sounds perfectly valid to me.
Carsten
On 30.01.2020 00:52, Radu Cotescu wrote:
Could we, at least for new APIs, stop using adaptTo? (I started running away
from any physical location known by Sling committers)
On 29 Jan 2020, at 21:40, Carsten Ziegeler <cziege...@apache.org> wrote:
A resource might be adaptable to RedirectProvider.
--
--
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org