Package com.composum.sling.core
Class BeanContext.AbstractScriptContext
- java.lang.Object
-
- org.apache.sling.api.adapter.SlingAdaptable
-
- com.composum.sling.core.BeanContext.AbstractContext
-
- com.composum.sling.core.BeanContext.AbstractScriptContext
-
- All Implemented Interfaces:
BeanContext
,Cloneable
,org.apache.sling.api.adapter.Adaptable
- Direct Known Subclasses:
BeanContext.Map
,BeanContext.Page
- Enclosing interface:
- BeanContext
public abstract static class BeanContext.AbstractScriptContext extends BeanContext.AbstractContext
the enhancement of the base for scripting contexts
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.composum.sling.core.BeanContext
BeanContext.AbstractContext, BeanContext.AbstractScriptContext, BeanContext.Map, BeanContext.Page, BeanContext.Scope, BeanContext.Service, BeanContext.Servlet, BeanContext.Wrapper
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.sling.api.scripting.SlingScriptHelper
scriptHelper
protected org.apache.sling.api.scripting.SlingBindings
slingBindings
-
Fields inherited from class com.composum.sling.core.BeanContext.AbstractContext
locale
-
Fields inherited from interface com.composum.sling.core.BeanContext
ATTR_LOCALE, ATTR_REQUEST, ATTR_RESOLVER, ATTR_RESOURCE, ATTR_RESPONSE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScriptContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.api.scripting.SlingScriptHelper
getScriptHelper()
<T> T[]
getServices(Class<T> serviceType, String filter)
retrieves a set of services appropriate to the filterorg.apache.sling.api.scripting.SlingBindings
getSlingBindings()
<T> T
retrieveService(Class<T> type)
-
Methods inherited from class com.composum.sling.core.BeanContext.AbstractContext
adaptTo, cloneContext, getLocale, getService, getType, tryToInstantiateSlingBean, typeFits, withLocale
-
Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable
setAdapterManager, unsetAdapterManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.composum.sling.core.BeanContext
getAttribute, getRequest, getResolver, getResource, getResponse, setAttribute, withResource
-
-
-
-
Method Detail
-
retrieveService
public <T> T retrieveService(Class<T> type)
- Specified by:
retrieveService
in classBeanContext.AbstractContext
-
getServices
public <T> T[] getServices(Class<T> serviceType, String filter)
Description copied from interface:BeanContext
retrieves a set of services appropriate to the filter
-
getScriptHelper
public org.apache.sling.api.scripting.SlingScriptHelper getScriptHelper()
-
getSlingBindings
public org.apache.sling.api.scripting.SlingBindings getSlingBindings()
-
-