Question--about registring Sling Servlets in different ways
Hi All,
As per the documentation[0], we can create/register sling servlet in 4 ways.
1) Using Sling Annotation (@Slingservlet).
2) The @Properties and @Property annotations
3)Registration by Path
4) Registration by Resource Type
Could you please let me know what is the difference between those? Advantage with each one and under what circumstances we have to use each one.
[0]--https://sling.apache.org/documentation/the-sling-engine/servlets.html
Thanks
k Chaianya