commit | b3a2e14fa46266d7fdc08a4dc83d485dae5c765f | [log] [tgz] |
---|---|---|
author | Justin Edelson <justin@apache.org> | Thu Apr 27 13:37:01 2017 +0000 |
committer | Justin Edelson <justin@apache.org> | Thu Apr 27 13:37:01 2017 +0000 |
tree | 5b0206c6654b2968caffe196603b69110f171433 | |
parent | 611d3f60fab4ee3919924a765290c715d53fcb8e [diff] |
SLING-6785 - support caching for adaptations git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1792884 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/models/annotations/Model.java b/src/main/java/org/apache/sling/models/annotations/Model.java index 072bbd1..b30453a 100644 --- a/src/main/java/org/apache/sling/models/annotations/Model.java +++ b/src/main/java/org/apache/sling/models/annotations/Model.java
@@ -67,4 +67,11 @@ */ public String[] resourceType() default {}; + /** + * + * @return whether or not the model should be cached for the lifecycle of the adaptable + */ + public boolean cache() default false; + + }