@Target(value={PARAMETER,FIELD}) @Retention(value=RUNTIME) @Documented @MinMuleVersion(value="4.4") public @interface Optional
Parameter field a optional. All configurable attributes that don't include this annotation are considered
required| Modifier and Type | Fields and Description |
|---|---|
static String |
NULL
Because Java doesn't allow
null values as defaults in annotations, this value is used to represent a null. |
static String |
PAYLOAD
Denotes that if the parameter is not defined, the value will be taken from the message payload.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
defaultValue
The default value to use if the user doesn't specify a value for the parameter.
|
public static final String PAYLOAD
public static final String NULL
null values as defaults in annotations, this value is used to represent a null.
This value should only be used by the platformpublic abstract String defaultValue
null values are not allowed as default values in java annotations, the special NULL value was to
created to reference that the parameter should default to nullCopyright © 2023. All rights reserved.