When the HTL script asks for implementation of this interface, Sling Models uses the implementation class which is associated with the nearest resource type. So, to provide a custom backing Java object, you need to create a Sling Model class which uses a closer resource type than the default.
The following illustration shows the Title component that uses a custom Java class that extends the Title core component class.

To read this development article, click https://helpx.adobe.com/experience-manager/using/extend_jave_corecomponents.html.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.