Advantage of Sling Models
Hi,
I read a lot on Sling Models, but not able to comprehend the real Advantage of of Sling Models.
- Entirely annotation driven. "Pure" POJOs.
- Use standard annotations where possible.
- Pluggable
- OOTB, support resource properties (via ValueMap), SlingBindings, OSGi services, request attributes
- Adapt multiple objects - minimal required Resource and SlingHttpServletRequest
- Client doesn't know/care that these objects are different than any other adapter factory
- Support both classes and interfaces.
- Work with existing Sling infrastructure (i.e. not require changes to other bundles).
Could you please show me a real world example where Sling Models come to the rescue?
Without Sling Models, how we would have implemented that functionality and what are the pain points we would have faced?
Appreciate your support.
Thanks,
Rama.