About Sling Commons
Common Sling utility and helper functions.
Documentation
Overview
The Sling Commons library contains:
- Context-Aware Services which pick the best-matching OSGi service implementation based on resource context.
RequestContextinterface which supports getting the current request via a ThreadLocal- Helper
AdaptToclass for adapting with non-null check - Helper classes for accessing typed request parameters and selectors from the current request
- An
ImmutableValueMapimplementation with similar interface like Google Guava'sImmutableMap - Other useful helper classes, see API documentation
AEM Version Support Matrix
| wcm.io Sling Commons version | AEM version supported |
|---|---|
| 1.6.6 or higher | AEM 6.5.17+, AEMaaCS |
| 1.5.0 - 1.6.4 | AEM 6.5.7+, AEMaaCS |
| 1.4.x | AEM 6.4+, AEMaaCS |
| 1.3.x | AEM 6.3+ |
| 1.0.x - 1.2.x | AEM 6.1+ |
| 0.x | AEM 6.0+ |