Various custom configuration elements support a common content model used to supply JSR-223 scripts inside other object configurations. Where applicable, the specific configuration elements that share this content model will link to this page. These include the following documentation pages:
This feature is new in V3.4 and is a supplement to the older supported approach of defining scripted beans in native Spring files and referring to the beans by reference.
Configuration elements that contain scripts are of type ScriptType
, which is a type used across a number of namespaces. The specific namespace will depend on where the element shows up in your configuration.
The following sections describe the attributes and child elements of an element of type ScriptType
.
AttributesAn element of type
If the Child ElementsAn element of type
The script may be stored in a local file (with
|
Each element of type ScriptType
provides relevant script context, that is, one or more input objects to be utilized by the script. For specific details, consult the individual configuration element pages listed above.
The following example illustrates the use of a CDATA section
<Script> <![CDATA[ // script goes here ]]> </Script> |
For additional examples of scripts, consult the individual configuration element pages listed above.