org.apache.sling.scripting.core.impl
Class InternalScriptHelper
java.lang.Object
org.apache.sling.scripting.core.ScriptHelper
org.apache.sling.scripting.core.impl.InternalScriptHelper
- All Implemented Interfaces:
- SlingScriptHelper
public class InternalScriptHelper
- extends ScriptHelper
Internal script helper
Method Summary |
<ServiceType>
ServiceType |
|
getService(Class<ServiceType> type)
Lookup a single service |
Methods inherited from class org.apache.sling.scripting.core.ScriptHelper |
cleanup, dispose, forward, forward, forward, forward, forward, forward, getRequest, getResponse, getScript, getServices, include, include, include, include, include, include |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalScriptHelper
public InternalScriptHelper(org.osgi.framework.BundleContext ctx,
SlingScript script,
SlingHttpServletRequest request,
SlingHttpServletResponse response,
ServiceCache cache)
InternalScriptHelper
public InternalScriptHelper(org.osgi.framework.BundleContext ctx,
SlingScript script,
ServiceCache cache)
getService
public <ServiceType> ServiceType getService(Class<ServiceType> type)
- Description copied from interface:
SlingScriptHelper
- Lookup a single service
- Specified by:
getService
in interface SlingScriptHelper
- Overrides:
getService
in class ScriptHelper
- Parameters:
type
- The type (interface) of the service.
- Returns:
- The service instance, or null if the service is not available.
- See Also:
SlingScriptHelper.getService(java.lang.Class)
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.