Annotation Type JsonValueMapValue
-
@Target({METHOD,FIELD,PARAMETER}) @Retention(RUNTIME) @InjectAnnotation public @interface JsonValueMapValue
Parses a value map property that contains a JSON string over to a POJO using gson. Supports a list, collection, set or a single value. Note: not supported by the javax.Inject annotation because of performance reasons. Only direct annotation is supported.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description org.apache.sling.models.annotations.injectorspecific.InjectionStrategyinjectionStrategyif set to REQUIRED injection is mandatory, if set to OPTIONAL injection is optional, in case of DEFAULT the standard annotations (Optional,Required) are used.StringnameSpecifies the name of the value from the value map to take.
-
-
-
Field Detail
-
SOURCE
static final String SOURCE
Source value used for this annotation.- See Also:
Source
-
-
Element Detail
-
name
String name
Specifies the name of the value from the value map to take. If empty, then the name is derived from the method or field.- Default:
- ""
-
-
-
injectionStrategy
org.apache.sling.models.annotations.injectorspecific.InjectionStrategy injectionStrategy
if set to REQUIRED injection is mandatory, if set to OPTIONAL injection is optional, in case of DEFAULT the standard annotations (Optional,Required) are used. If even those are not available the default injection strategy defined on theModelapplies. Default value = DEFAULT.- Default:
- org.apache.sling.models.annotations.injectorspecific.InjectionStrategy.DEFAULT
-
-