Improvements to the Jetty documentation.
Clarified that in Jetty XML's Array element the attribute "type" may also be a child element. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
4080dda561
commit
4081c6841a
|
@ -286,7 +286,7 @@ You can only specify the key value via the `name` attribute, so the key can only
|
|||
[[og-xml-syntax-array]]
|
||||
===== `<Array>` and `<Item>`
|
||||
|
||||
Element `<Array>` creates a new array, whose component type may be specified by the `type` attribute.
|
||||
Element `<Array>` creates a new array, whose component type may be specified by the `type` attribute, or by a `Type` child element.
|
||||
|
||||
[source,xml]
|
||||
----
|
||||
|
|
|
@ -100,7 +100,8 @@
|
|||
<Call name="callStatic" class="org.eclipse.jetty.xml.TestConfiguration"/>
|
||||
|
||||
<Call name="call">
|
||||
<Arg><Array type="java.lang.Object">
|
||||
<Arg><Array>
|
||||
<Type>java.lang.Object</Type>
|
||||
<Item>Blah</Item>
|
||||
<Item type="String">1.2.3.4:5678</Item>
|
||||
<Item><New class="java.lang.Double"><Arg>1.2345</Arg></New></Item>
|
||||
|
@ -109,7 +110,8 @@
|
|||
</Call>
|
||||
|
||||
<Call name="call">
|
||||
<Arg><Array type="int">
|
||||
<Arg><Array>
|
||||
<Type>int</Type>
|
||||
<Item type="int">1</Item>
|
||||
<Item type="int">2</Item>
|
||||
<Item type="int">3</Item>
|
||||
|
|
Loading…
Reference in New Issue