Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Usage of Sling Model


Level 1

Which one of the following a better way of defining a sling model and why?


public interface MyModel {


     String getPropertyName();




public class MyModel {


     private String propertyName;


Can you tell me a defined use case for using an interface as a model when all the methods are to be overridden in all the implementation classes?

0 Replies