2014-07-07 18:14 GMT+02:00 Justin Edelson <jus...@justinedelson.com>:
> Hi, > > > 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? > > But again, what different action would a client take depending on the error condition 1, 2 or 3? Carsten > Regards, > Justin > > > > > Cheers, > > Alex > > > -- Carsten Ziegeler Adobe Research Switzerland cziege...@apache.org