Open cqsapient opened 3 years ago
I don't have experience with Lombok but shouldn't @Delegate(types = Tabs.class, excludes = DelegationExclusion.class)
be @Delegate(types = {Tabs.class, Container.class}, excludes = DelegationExclusion.class)
, to ensure the methods from the Container
interfaces are also delegated?
I see @Delegate
is deprecated and moved to experimental (https://projectlombok.org/features/experimental/Delegate)
above is the sling model I wrote. I am using delegation pattern using lombok - hoping all getter method of parent super type will be exported in model.json
I am trying to override the getActiveItem method for Tabs component. But it's not populating the items properly - they are empty in the json - just returning the overridden method in the json -
when I remove this Sling model from the bundle - the OOTB sling model comes into picture and returns everything -
can someone please let me know what is missing in sling model that it's not returning the items properly