public interface

GroovyObjectCustomizer

org.springframework.scripting.groovy.GroovyObjectCustomizer

Class Overview

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.

Summary

Public Methods
abstract void customize(GroovyObject goo)
Customize the supplied GroovyObject.

Public Methods

public abstract 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 the GroovyObject to customize