Top Description Constructors Methods
org.springframework.scripting.config

public Class LangNamespaceHandler

extends NamespaceHandlerSupport
Class Inheritance
Imports
org.springframework.beans.factory.xml.NamespaceHandlerSupport

NamespaceHandler that supports the wiring of objects backed by dynamic languages such as Groovy, JRuby and BeanShell. The following is an example (from the reference documentation) that details the wiring of a Groovy backed bean:
<lang:groovy id="messenger"
    refresh-check-delay="5000"
    script-source="classpath:Messenger.groovy">
<lang:property name="message" value="I Can Do The Frug"/>
</lang:groovy>
Authors
Rob Harrop, Juergen Hoeller, Mark Fisher
Since
2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
init()

Implements org.springframework.beans.factory.xml.NamespaceHandler.init.

Invoked by the DefaultBeanDefinitionDocumentReader after construction but before any custom elements are parsed.

private void
registerScriptBeanDefinitionParser(String key, String scriptFactoryClassName)

Inherited from org.springframework.beans.factory.xml.NamespaceHandlerSupport:
decorateparseregisterBeanDefinitionDecoratorregisterBeanDefinitionDecoratorForAttributeregisterBeanDefinitionParser

Constructor Detail

LangNamespaceHandlerback to summary
public LangNamespaceHandler()

Method Detail

initback to summary
public void init()

Implements org.springframework.beans.factory.xml.NamespaceHandler.init.

Doc from org.springframework.beans.factory.xml.NamespaceHandler.init.

Invoked by the DefaultBeanDefinitionDocumentReader after construction but before any custom elements are parsed.

Annotations
@Override
registerScriptBeanDefinitionParserback to summary
private void registerScriptBeanDefinitionParser(String key, String scriptFactoryClassName)