Package de.hybris.platform.spring
Class SpringAwareGroovyServlet.SpringAwareBinding
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Binding
de.hybris.platform.spring.SpringAwareGroovyServlet.SpringAwareBinding
- All Implemented Interfaces:
groovy.lang.GroovyObject
- Enclosing class:
- SpringAwareGroovyServlet
protected static class SpringAwareGroovyServlet.SpringAwareBinding
extends groovy.lang.Binding
Groovy
Binding which is delegating to a existing one but looks up missing variables inside the provided
ApplicationContext.
Do note that beans are stored inside the binding and therefore only looked up once!-
Constructor Summary
ConstructorsConstructorDescriptionSpringAwareBinding(groovy.lang.Binding delegate, org.springframework.context.ApplicationContext springCtx) -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String property) getVariable(String name) booleanhasVariable(String name) voidsetProperty(String property, Object newValue) voidsetVariable(String name, Object value) Methods inherited from class groovy.lang.Binding
removeVariableMethods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
invokeMethod
-
Constructor Details
-
SpringAwareBinding
public SpringAwareBinding(groovy.lang.Binding delegate, org.springframework.context.ApplicationContext springCtx)
-
-
Method Details
-
getVariable
- Overrides:
getVariablein classgroovy.lang.Binding
-
setVariable
- Overrides:
setVariablein classgroovy.lang.Binding
-
hasVariable
- Overrides:
hasVariablein classgroovy.lang.Binding
-
getVariables
- Overrides:
getVariablesin classgroovy.lang.Binding
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classgroovy.lang.Binding
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classgroovy.lang.Binding
-