<lang:groovy/>',
'<lang:std/>' and '<lang:bsh/>' tags.
Allows for objects written using dynamic languages to be easily exposed with
the org.springframework.beans.factory.BeanFactory .
The script for each object can be specified either as a reference to the
resource containing it (using the 'script-source' attribute) or inline
in the XML configuration itself (using the 'inline-script' attribute.
By default, dynamic objects created with these tags are not
refreshable. To enable refreshing, specify the refresh check delay for each
object (in milliseconds) using the 'refresh-check-delay' attribute.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final String | scriptFactoryClassName
The |
| Access | Constructor and Description |
|---|---|
| public | ScriptBeanDefinitionParser(String
the ScriptFactory class to operate on scriptFactoryClassName)Create a new instance of this parser, creating bean definitions for the
supplied |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractBeanDefinition | parseInternal(Element
the element that is to be parsed into one or more element, ParserContext BeanDefinitionsthe object encapsulating the current state of the parsing process;
provides access to a parserContext)org.Implements abstract org. Parses the dynamic object element and returns the resulting bean definition. |
| private String | resolveScriptSource(Element element, XmlReaderContext readerContext)
Resolves the script source from either the ' |
| protected boolean | shouldGenerateIdAsFallback()
Overrides org. Scripted beans may be anonymous as well. |
| AUTOWIRE_ATTRIBUTE | back to summary |
|---|---|
| private static final String AUTOWIRE_ATTRIBUTE | |
| CUSTOMIZER_REF_ATTRIBUTE | back to summary |
|---|---|
| private static final String CUSTOMIZER_REF_ATTRIBUTE | |
| DEPENDS_ON_ATTRIBUTE | back to summary |
|---|---|
| private static final String DEPENDS_ON_ATTRIBUTE | |
| DESTROY_METHOD_ATTRIBUTE | back to summary |
|---|---|
| private static final String DESTROY_METHOD_ATTRIBUTE | |
| ENGINE_ATTRIBUTE | back to summary |
|---|---|
| private static final String ENGINE_ATTRIBUTE | |
| INIT_METHOD_ATTRIBUTE | back to summary |
|---|---|
| private static final String INIT_METHOD_ATTRIBUTE | |
| INLINE_SCRIPT_ELEMENT | back to summary |
|---|---|
| private static final String INLINE_SCRIPT_ELEMENT | |
| PROXY_TARGET_CLASS_ATTRIBUTE | back to summary |
|---|---|
| private static final String PROXY_TARGET_CLASS_ATTRIBUTE | |
| REFRESH_CHECK_DELAY_ATTRIBUTE | back to summary |
|---|---|
| private static final String REFRESH_CHECK_DELAY_ATTRIBUTE | |
| SCOPE_ATTRIBUTE | back to summary |
|---|---|
| private static final String SCOPE_ATTRIBUTE | |
| SCRIPT_INTERFACES_ATTRIBUTE | back to summary |
|---|---|
| private static final String SCRIPT_INTERFACES_ATTRIBUTE | |
| SCRIPT_SOURCE_ATTRIBUTE | back to summary |
|---|---|
| private static final String SCRIPT_SOURCE_ATTRIBUTE | |
| scriptFactoryClassName | back to summary |
|---|---|
| private final String scriptFactoryClassName The | |
| ScriptBeanDefinitionParser | back to summary |
|---|---|
| public ScriptBeanDefinitionParser(String scriptFactoryClassName) Create a new instance of this parser, creating bean definitions for the
supplied
| |
| resolveScriptSource | back to summary |
|---|---|
| private String resolveScriptSource(Element element, XmlReaderContext readerContext) Resolves the script source from either the '
| |
| shouldGenerateIdAsFallback | back to summary |
|---|---|
| protected boolean shouldGenerateIdAsFallback() Overrides org. Scripted beans may be anonymous as well.
| |