On Sat, Nov 12, 2011 at 9:00 AM, Alexander Klimetschek
<[email protected]> wrote:
> On 12.11.11 04:37, "Justin Edelson" <[email protected]> wrote:
>>https://gist.github.com/1359997
>>
>>WDYT?
>
> +1 for the overall concept, very useful (I know, since I once created that
> documentation reference you linked to ;-))

I probably should have given you credit :)

>
> One comment though: the "condition" isn't always valid for all adapters.
> Your example gist is a good case: the InputStream is only possible if that
> resource is a JCRNodeResource *and* an nt:file with binary content.

Indeed. I updated the gist to better reflect that situation. The idea
is that the condition applies to that particular combination of
adaptable/adapters, so in the case of InputStream (and
PersistableValueMap), I broke those out into separate JSON objects.

To be sure, I'm not confident we're going to be able to capture all
the "condition" but I both think it is worth trying. I had thought of
using a generic label like "notes" or "comments", but I think
"condition" better identifies the content I think is most relevant.

Justin

>
> Cheers,
> Alex
>
> --
> Alexander Klimetschek
> Developer // Adobe (Day) // Berlin - Basel
>
>
>
>
>

Reply via email to