Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
See SLING-3709 for a Sling Models-specific request. As I commented there, I think this makes more sense as a core change to the Adaptable interface.
One option:
resource.adaptTo(Result<Node>.class)
Which returns a Result object, which has an API like:
interface Result<T> {
boolean isSuccess();
T getObject();
List<Error> getErrors();
}
Attachments
Issue Links
- is duplicated by
-
SLING-8758 Add Adaptable method with a non-null return value
- Closed
- is related to
-
SLING-3709 Sling Models: Allow caller to deal with exceptions
- Closed
-
SLING-8758 Add Adaptable method with a non-null return value
- Closed