Provided classes - 4.2
Below table lists what objects are provided by Slice 4.2.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
Class | Binding annotation | Description | Module |
---|---|---|---|
Guice | |||
com.google.inject.Injector | - | Injector which is used | |
Slice | |||
com.cognifide.slice.api.provider.ModelProvider | - | Default implementation of ModelProvider | SliceModule |
@Deprecated om.cognifide.slice.api.provider.ChildrenProvider | - | Default implementation of ChildrenProvider | |
com.cognifide.slice.api.provider.ClassToKeyMapper | - | Default implementation of ClassToKeyMapper | |
com.cognifide.slice.api.context.ContextFactory | - | ||
| com.cognifide.slice.api.qualifier.RequestedResource | 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. | |
java.lang.String | com.cognifide.slice.api.qualifier.RequestedResourcePath | path of originally requested resource. | |
java.lang.String | com.cognifide.slice.api.qualifier.CurrentResourcePath | path of current resource, i.e. resource from the top of Execution stack. Usually, a resource of currently included component. | |
java.lang.String | com.cognifide.slice.api.qualifier.InjectorName | A name under which the injector is registered. | |
com.cognifide.slice.api.execution.ExecutionContextStack | - | Execution stack. It should not be used outside of Slice | |
Sling | |||
javax.servlet.ServletRequest | - | ServletRequest associated with current processing | SlingModule |
javax.servlet.ServletResponse | - | ServletResponse associated with current processing | |
org.apache.sling.api.SlingHttpServletRequest | - | Sling request associated with current processing | |
org.apache.sling.api.SlingHttpServletResponse | - | Sling response associated with current processing | |
org.apache.sling.api.resource.Resource | - | Current resource, i.e. resource from the top of Execution stack | |
org.apache.sling.api.resource.ResourceResolver | - | ResourceResolver associated with current user session (request) | |
org.apache.sling.api.request.RequestPathInfo | - | RequestPathInfo object associated with request | |
java.lang.String | com.cognifide.slice.api.qualifier.Extension | Request extension in terms of Sling nomenclature | |
java.lang.String | com.cognifide.slice.api.qualifier.Suffix | Request suffix in terms of Sling nomenclature | |
java.lang.String[] | com.cognifide.slice.api.qualifier.Selectors | An array of all selectors of the request. If request has no selectors, empty array is returned. | |
java.util.List<String> | com.cognifide.slice.api.qualifier.Selectors | A List of all selectors of the request. If request has no selectors, empty list is returned. | |
java.lang.String | com.cognifide.slice.api.qualifier.SelectorString | Selector string in terms of Sling nomenclature. null if request has no selectors. | |
JCR | |||
javax.jcr.query.QueryManager | - | JCR's QueryManager | JcrModule |
CQ | |||
com.cognifide.slice.mapper.api.Mapper | - | Mapper containing all processors and post processors available in Slice | CQMapperModule |