@Target(value={METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @InjectAnnotation public @interface EToolboxList
Injects values of the same types that ListHelper
can produce. An array/collection of items can consist of
Resource
s, SimpleListItem
s, or else arbitrary list items as soon as they are backed by a
resource-adapted (not request-adapted) Sling model.
If the annotated member is of type Collection
or List
, or else an array of items, the collection
of list entries is injected. If the member is of type Object
, the list or resources is injected. A map is
injected into a map-typed member. Otherwise, nothing is injected.
Modifier and Type | Required Element and Description |
---|---|
String |
value
Specifies the path to a list of items
|
Modifier and Type | Optional Element and Description |
---|---|
String |
keyProperty
Specifies the key attribute in a resource that identifies an item in the list.
|
public abstract String value
public abstract String keyProperty
Map<String, T>
typeCopyright © 2024 Exadel, Inc.. All rights reserved.