On 07.07.2014, at 18:14, Justin Edelson <jus...@justinedelson.com> wrote:
> I found a more concrete example in the AEM codebase (so apologies to > the non-Adobe people on this thread who will just have to take my word > for it). The adapter factory which adapts Resources into Scene7 "set" > objects makes a number of validations before returning a non-null > result: > 1) Is the Resource an Asset? > 2) Does the Asset represet a Scene7 set? (which is done by looking at > a property) > 3) Does the requested set class correspond to the set type of the Asset? Generally, I happen to know that this code is still evolving and I wouldn't see it as a good example ;) More specifically, this should really just look at a resource type and adapt or not. Nothing specific here compared to all the normal adaptto cases that look at node or resource type to map to a specific class. Cheers, Alex