Interface GroovyObjectCustomizer
public interface GroovyObjectCustomizer
Strategy used byGroovyScriptFactoryto allow the customization of a createdGroovyObject.This is useful to allow the authoring of DSLs, the replacement of missing methods, and so forth. For example, a custom
MetaClasscould be specified.- Since:
- 2.0.2
- Author:
- Rod Johnson
- See Also:
GroovyScriptFactory
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcustomize(groovy.lang.GroovyObject goo)Customize the suppliedGroovyObject.
Method Detail
customize
void customize(groovy.lang.GroovyObject goo)
Customize the suppliedGroovyObject.For example, this can be used to set a custom metaclass to handle missing methods.
- Parameters:
goo- theGroovyObjectto customize