Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Similar to ModelFactory.getModelFromWrappedRequest(...) there should be a ModelFactory.createModelFromWrappedRequest(...). The former relies on the adaptTo(...) pattern which does not emit any useful exception but just returns null in case of errors. The createModelFromWrappedRequest(...) should use the createModel(...) method internally and propagate any exceptions thrown from it.
Attachments
Issue Links
- relates to
-
SLING-7015 Add Utility Method to ModelFactory to help proper model creation from child resources in a request context
- Closed
- links to