Sling Modles - Specifying an Alternate Adapter Class
Hi Team,
I tried the below code in sling models but I got error for declaring adapters -
@Model(adaptables = Resource.class, adapters = MyModel.class)
public class MySlingModel {
}
I'm using the below dependencies -
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.models.api</artifactId>
<version>1.1.0</version>
<scope>provided</scope>
</dependency>
Earlier I used for the version 1.0.0. But it is not working. I'm unable to use adapters.
Can you pls help me in this?
Thanks,
AryA.