Top Description Methods
org.springframework.scripting.groovy

public Interface GroovyObjectCustomizer

Annotations
@FunctionalInterface
Imports
groovy.lang.GroovyObject

Strategy used by GroovyScriptFactory to allow the customization of a created GroovyObject.

This is useful to allow the authoring of DSLs, the replacement of missing methods, and so forth. For example, a custom groovy.lang.MetaClass could be specified.

Author
Rod Johnson
Since
2.0.2
See Also
GroovyScriptFactory

Method Summary

Modifier and TypeMethod and Description
public void
customize(GroovyObject
the GroovyObject to customize
goo
)

Customize the supplied GroovyObject.

Method Detail

customizeback to summary
public void customize(GroovyObject goo)

Customize the supplied GroovyObject.

For example, this can be used to set a custom metaclass to handle missing methods.

Parameters
goo:GroovyObject

the GroovyObject to customize