---
title: "Discussion on \"adaptTo() in Apache Sling: How It Works, When to Use It, and All Possible Adaptations\" | Hashnode"
description: "Discussion on \"adaptTo() in Apache Sling: How It Works, When to Use It, and All Possible Adaptations\". Learn how adaptTo() works in Apache Sling to convert objects like Resource to JCR Session in AEM development."
url: "https://hashnode.com/posts/adaptto-in-apache-sling/697160d6a2a8cfabecf79a7f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [adaptTo() in Apache Sling: How It Works, When to Use It, and All Possible Adaptations](https://adapttoaem.hashnode.dev/adaptto-in-apache-sling?utm_source=hashnode&utm_medium=feed)

Learn how adaptTo() works in Apache Sling to convert objects like Resource to JCR Session in AEM development.

Jan 21 · 6 min read · adapttoaem.hashnode.dev  
Updated Mar 13  
Read the article

-   [#adaptto](https://hashnode.com/tag/adaptto)
-   [#aem](https://hashnode.com/tag/aem)
-   [#aemcloud](https://hashnode.com/tag/aemcloud)
-   [#aem-implementation](https://hashnode.com/tag/aem-implementation)
-   [#sling](https://hashnode.com/tag/sling)
-   [#apache-sling](https://hashnode.com/tag/apache-sling)

## Written by

[Anudeep Garnepudi](https://hashnode.com/@iamAG)

@iamAG

  
[View profile](https://hashnode.com/@iamAG)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
