Creates an instance of the specified class.The string and field sub-elements are passed to the constructor method as arguments in the order they are specified. A runtime exception will be thrown if the sub-elements do not match the constructor method arguments Create a new Java object. Code Block |
---|
|
<create-object field="foo" class-name="com.acme.FooClass">
<string value="bar" />
<field field="foo" />
</create-object>
|
Attributes
Name | Type | Requirements | Description | Note |
---|
field | expression | optionalrequired | The name of the field for the new object. | | class-name | constant | requiredoptional | The Java class name. | |
Child Elements
Name | Requirements | |
---|
<field>
| optional | ![(question)](/confluence/s/34gb19/8804/10mvnxf/_/images/icons/emoticons/help_16.svg)
| <string>
| optional |
info |