@Documented @Retention(value=RUNTIME) @Target(value={FIELD,ANNOTATION_TYPE}) public @interface This
Fields with this annotation refer to the current resource
,
i.e. the resource mapped to the model containing this field.
If the field's type is not Resource
, the
resource is adapted
to the type of the field.
Example:
@ResourceModel
(types = "my/resource/type") public class MyModel { @This
privateResource
resource; @This
private OtherModelForThisResourceType otherModel; }
Copyright © 2024. All rights reserved.