{"id":56695,"library":"org-apache-sling-models-api","title":"Apache Sling Models API","description":"Apache Sling Models API provides a framework for mapping Sling resources to Java model objects.","status":"active","version":"2.0.0","language":"java","source_language":null,"source_url":"https://github.com/apache/sling-org-apache-sling-models-api","tags":["sling","models","aem","adobe","resource"],"install":[{"cmd":"<dependency>\n  <groupId>org.apache.sling</groupId>\n  <artifactId>org.apache.sling.models.api</artifactId>\n  <version>2.0.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.apache.sling:org.apache.sling.models.api:2.0.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Model","correct":"org.apache.sling.models.annotations.Model"}],"quickstart":{"code":"import org.apache.sling.models.annotations.Model;\nimport javax.inject.Inject;\n\n@Model(adaptables = org.apache.sling.api.resource.Resource.class)\npublic class MyModel {\n    @Inject\n    private String title;\n\n    public String getTitle() {\n        return title;\n    }\n}","lang":"java","description":"Defines a Sling Model that adapts from a Resource."},"warnings":[],"env_vars":null,"search_vec":"'adob':23 'aem':22 'apach':1,5 'api':4,8 'framework':11 'java':17 'map':13 'model':3,7,18,21 'object':19 'provid':9 'resourc':15,24 'sling':2,6,14,20","created_at":"2026-06-15T10:46:32.667421+00:00","updated_at":"2026-06-15T10:46:32.667421+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://sling.apache.org","github":"https://github.com/apache/sling-org-apache-sling-models-api","docs":"https://appdoc.app/artifact/org.apache.sling/org.apache.sling.models.api/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["dependency-injection"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}