This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.models.api-1.3.4
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-api.git

commit 3ddb2c4704fc10d14da292d3030586a277680432
Author: Justin Edelson <[email protected]>
AuthorDate: Thu Apr 27 13:37:01 2017 +0000

    SLING-6785 - support caching for adaptations
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/api@1792884
 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/models/annotations/Model.java | 7 +++++++
 1 file changed, 7 insertions(+)

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 @interface Model {
      */
     public String[] resourceType() default {};
 
+    /**
+     *
+     * @return whether or not the model should be cached for the lifecycle of 
the adaptable
+     */
+    public boolean cache() default false;
+
+
 }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to