站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

LangNamespaceHandler (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.scripting.config
Class LangNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by org.springframework.scripting.config.LangNamespaceHandler
All Implemented Interfaces:
NamespaceHandler

public class LangNamespaceHandler
extends 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>
 

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller

Constructor Summary
LangNamespaceHandler()
           
 
Method Summary
 void init()
          Invoked by the DefaultBeanDefinitionDocumentReader after construction but before any custom elements are parsed.
 
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, findDecoratorForNode, findParserForElement, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LangNamespaceHandler

public LangNamespaceHandler()
Method Detail

init

public void init()
Description copied from interface: NamespaceHandler
Invoked by the DefaultBeanDefinitionDocumentReader after construction but before any custom elements are parsed.

See Also:
NamespaceHandlerSupport.registerBeanDefinitionParser(String, BeanDefinitionParser)

The Spring Framework

Copyright © 2002-2007 The Spring Framework.