Hi

2018-06-06 17:01 GMT+02:00 Jason E Bailey <j...@apache.org>:

> This started out as a separate Object which was part of a bigger set of
> code, from which the feedback eventually had it end up as a single method
> in the Resource interface.
>


Resource implements the very flexible Adapter interface, so I imagine, that

Streamer stream = resource.adaptTo(Streamer.class);

could do the trick. Then you can have everything in a dedicated bundle and
there is no need to change any of the sling core APIs or bundles. It can
even work with older sling resource bundle versions.


-- 
Cheers,
Jörg Hoh,

http://cqdump.wordpress.com
Twitter: @joerghoh

Reply via email to