Top Description Fields Constructors Methods
org.springframework.beans.factory.groovy

pack-priv Class GroovyDynamicElementReader

extends GroovyObjectSupport
Class Inheritance
Imports
java.io.IOException, .StringWriter, java.util.Map, groovy.lang.Closure, .GroovyObject, .GroovyObjectSupport, .Writable, groovy.xml.StreamingMarkupBuilder, org.w3c.dom.Element, org.springframework.beans.factory.config.BeanDefinition, .BeanDefinitionHolder, org.springframework.beans.factory.support.AbstractBeanDefinition, org.springframework.beans.factory.xml.BeanDefinitionParserDelegate, org.springframework.lang.Nullable

Used by GroovyBeanDefinitionReader to read a Spring XML namespace expression in the Groovy DSL.
Authors
Jeff Brown, Juergen Hoeller, Dave Syer
Since
4.0

Field Summary

Modifier and TypeField and Description
private final GroovyBeanDefinitionWrapper
private boolean
protected final boolean
private final BeanDefinitionParserDelegate
private final String
private final Map<String, String>

Constructor Summary

AccessConstructor and Description
public
GroovyDynamicElementReader(String namespace, Map<String, String> namespaceMap, BeanDefinitionParserDelegate delegate, GroovyBeanDefinitionWrapper beanDefinition, boolean decorating)

Method Summary

Modifier and TypeMethod and Description
protected void
afterInvocation()

Hook that subclasses or anonymous classes can override to implement custom behavior after invocation completes.

public Object
invokeMethod(String
the name of the method to call
name
,
Object
the arguments to use for the method call
obj
)

Overrides default groovy.lang.GroovyObject.invokeMethod.

Invokes the given method.
Inherited from groovy.lang.GroovyObjectSupport:
getMetaClasssetMetaClass

Field Detail

beanDefinitionback to summary
private final GroovyBeanDefinitionWrapper beanDefinition
callAfterInvocationback to summary
private boolean callAfterInvocation
decoratingback to summary
protected final boolean decorating
delegateback to summary
private final BeanDefinitionParserDelegate delegate
rootNamespaceback to summary
private final String rootNamespace
xmlNamespacesback to summary
private final Map<String, String> xmlNamespaces

Constructor Detail

GroovyDynamicElementReaderback to summary
public GroovyDynamicElementReader(String namespace, Map<String, String> namespaceMap, BeanDefinitionParserDelegate delegate, GroovyBeanDefinitionWrapper beanDefinition, boolean decorating)

Method Detail

afterInvocationback to summary
protected void afterInvocation()

Hook that subclasses or anonymous classes can override to implement custom behavior after invocation completes.

invokeMethodback to summary
public Object invokeMethod(String name, Object obj)

Overrides default groovy.lang.GroovyObject.invokeMethod.

Doc from groovy.lang.GroovyObject.invokeMethod.

Invokes the given method.

Parameters
name:String

the name of the method to call

obj:Object

the arguments to use for the method call

Returns:Object

the result of invoking the method

Annotations
@Override
@Nullable