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 Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Groovy Binding which is delegating to a existing one but looks up missing variables inside the provided ApplicationContext.
    protected static class 
    Modified GroovyScriptEngine which holds a ApplicationContext and wrapping each Binding into a SpringAwareGroovyServlet.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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected groovy.util.GroovyScriptEngine
     

    Methods inherited from class groovy.servlet.GroovyServlet

    init, service

    Methods inherited from class groovy.servlet.AbstractHttpServlet

    applyResourceNameMatcher, generateNamePrefixOnce, getResourceConnection, getScriptUri, getScriptUriAsFile, removeNamePrefix, setVariables

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpringAwareGroovyServlet

      public SpringAwareGroovyServlet()
  • Method Details

    • createGroovyScriptEngine

      protected groovy.util.GroovyScriptEngine createGroovyScriptEngine()
      Overrides:
      createGroovyScriptEngine in class groovy.servlet.GroovyServlet