Provided classes - 4.0
Below table lists what objects are provided by Slice 4.0.0 out of the box. Please note that some objects are available only if they are declared with binding annotation (it especially concerns String objects). There are also objects available both with and without annotation, e.g. org.apache.sling.api.resource.Resource.
The CQ related objects are available only when Slice CQ Addons are provided.
Class | Binding annotation | Description | Module |
|---|---|---|---|
Guice | |||
| - | Injector which is used |
|
Slice | |||
| - | Default implementation of ModelProvider |
|
| - | Default implementation of ChildrenProvider |
|
| - | Default implementation of ClassToKeyMapper |
|
| - |
|
|
|
| originally requested resource. Please note that it doesn't correspond to request.getResource(), because this method returns different resources for each component included by cq:include tag. |
|
|
| path of originally requested resource. |
|
|
| path of current resource, i.e. resource from the top of Execution stack. Usually, a resource of currently included component. |
|
|
| A name under which the injector is registered. |
|
| - | Execution stack. It should not be used outside of Slice |
|
Sling | |||
| - |
|
|
| - |
|
|
| - | Sling request associated with current processing |
|
| - | Sling response associated with current processing |
|
| - | Current resource, i.e. resource from the top of Execution stack |
|
| - |
|
|
| - |
|
|
|
| Request extension in terms of Sling nomenclature |
|
|
| Request suffix in terms of Sling nomenclature |
|
|
| An array of all selectors of the request. If request has no selectors, empty array is returned. |
|
|
| A |
|
|
| Selector string in terms of Sling nomenclature. |
|
JCR | |||
| - | JCR's |
|
CQ | |||
| - | Mapper containing all processors and post processors available in Slice |
|