com.icfolson.aem.groovy.console.api.ScriptMetaClassExtensionProvider.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aem-groovy-console Show documentation
Show all versions of aem-groovy-console Show documentation
The AEM Groovy Console provides an interface for running Groovy scripts in the AEM container. Scripts can be
created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the AEM, Sling,
or JCR APIs.
package com.icfolson.aem.groovy.console.api
import org.apache.sling.api.SlingHttpServletRequest
/**
* Services may implement this interface to supply additional metamethods to apply to the Script
metaclass.
*/
interface ScriptMetaClassExtensionProvider {
/**
* Get a closure to register a metaclass for the script to be executed.
*
* @param request current request
* @return a closure containing metamethods to register for scripts
*/
Closure getScriptMetaClass(SlingHttpServletRequest request)
}