Posts

Showing posts from July, 2018

Sling Models

Image
Introduction: Sling models are released as part of aem 6.0. Sling Models are simple POJO classes which are mapped automatically with Sling Objects (resource, request objects.) and allow us to access jcr node property values directly into java classes. Features of Sling Models: - Pure POJO classes.   Entirely annotation driven (Need to write less code).   Can adapt multiple objects –  – minimal required Resource and SlingHttpServletRequest   OOTB, support resource properties (via ValueMap), SlingBindings, OSGi services, request attributes Support both classes and interfaces. Work with existing Sling infrastructure (i.e. not require changes to other bundles). Using Sling Models, you can do more with less code so you can reduce your coding efforts. Your code is more maintainable using Sling Modes. There are lot of ways to accomplish the component backend logic like JSP,Server Side Javascript,WCMuse,WCMUsePOJO. However, with the release of AEM 6.3 and AEM Core WCM Co