org.apache.sling.scripting.core.impl
Class InternalScriptHelper

java.lang.Object
  extended by org.apache.sling.scripting.core.ScriptHelper
      extended by org.apache.sling.scripting.core.impl.InternalScriptHelper
All Implemented Interfaces:
SlingScriptHelper

public class InternalScriptHelper
extends ScriptHelper

Internal script helper


Field Summary
 
Fields inherited from class org.apache.sling.scripting.core.ScriptHelper
bundleContext, references, services
 
Constructor Summary
InternalScriptHelper(org.osgi.framework.BundleContext ctx, SlingScript script, ServiceCache cache)
           
InternalScriptHelper(org.osgi.framework.BundleContext ctx, SlingScript script, SlingHttpServletRequest request, SlingHttpServletResponse response, ServiceCache cache)
           
 
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
 

Constructor Detail

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)
Method Detail

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.