Package de.hybris.platform.spring
Class SpringAwareGroovyServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
groovy.servlet.AbstractHttpServlet
groovy.servlet.GroovyServlet
de.hybris.platform.spring.SpringAwareGroovyServlet
- All Implemented Interfaces:
groovy.util.ResourceConnector,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class SpringAwareGroovyServlet
extends groovy.servlet.GroovyServlet
Version of
GroovyServlet which is making all Spring bean accessible from
Registry.getApplicationContext().- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGroovyBindingwhich is delegating to a existing one but looks up missing variables inside the providedApplicationContext.protected static classModifiedGroovyScriptEnginewhich holds aApplicationContextand wrapping eachBindinginto aSpringAwareGroovyServlet.SpringAwareBinding. -
Field Summary
Fields inherited from class groovy.servlet.AbstractHttpServlet
CONTENT_TYPE_TEXT_HTML, encoding, INC_PATH_INFO, INC_REQUEST_URI, INC_SERVLET_PATH, INIT_PARAM_RESOURCE_NAME_REGEX, INIT_PARAM_RESOURCE_NAME_REGEX_FLAGS, namePrefix, reflection, resourceNamePattern, resourceNameReplaceAll, resourceNameReplacement, servletContext, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected groovy.util.GroovyScriptEngineMethods inherited from class groovy.servlet.GroovyServlet
init, serviceMethods inherited from class groovy.servlet.AbstractHttpServlet
applyResourceNameMatcher, generateNamePrefixOnce, getResourceConnection, getScriptUri, getScriptUriAsFile, removeNamePrefix, setVariablesMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SpringAwareGroovyServlet
public SpringAwareGroovyServlet()
-
-
Method Details
-
createGroovyScriptEngine
protected groovy.util.GroovyScriptEngine createGroovyScriptEngine()- Overrides:
createGroovyScriptEnginein classgroovy.servlet.GroovyServlet
-