|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Restriction @Documented @Target(value=METHOD) @Retention(value=SOURCE) public @interface Projection
Projection restriction signals that the annotated method will not
impact the operation on the receptor object, but instead return a new object
that represents the result of just operation.
Projection methods should return objects that share the same
interface of the receptor objection.
Projections may be lazy or eager- that is, perform the
actual operation on demand or not.
Projection methods must be non null, so there is no
need to annotate them as NonNull, as it is implied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||