Using OSGi for script deployment in Apache Sling
Apache Sling is an OSGi-based framework for RESTful web-applications using an extensible content tree. In a nutshell, Sling maps HTTP request URLs to content resources based on the request’s path, extension and selectors. Using convention over configuration, requests are processed by scripts and servlets, dynamically selected based on the current resource. This fosters meaningful URLs and resource-driven request processing, while the modular nature of Sling allows for specialised server instances that include only what is needed.