@Target(value={PARAMETER,FIELD,METHOD}) @Retention(value=RUNTIME) @Documented public @interface Optional
Parameter field a optional.
All configurable attributes that don't include this annotation are
considered required| 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 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 © 2015 MuleSoft, Inc.. All rights reserved.