jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r482226 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemStateCache.java
Date Mon, 04 Dec 2006 16:10:43 GMT
Author: angela
Date: Mon Dec  4 08:10:38 2006
New Revision: 482226

URL: http://svn.apache.org/viewvc?view=rev&rev=482226
Log:
work in progress

- javadoc

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemStateCache.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemStateCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemStateCache.java?view=diff&rev=482226&r1=482225&r2=482226
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemStateCache.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemStateCache.java
Mon Dec  4 08:10:38 2006
@@ -63,8 +63,16 @@
         // TODO: missing caching.
         return null;
     }
-    //------------------------------------------< ItemStateCreationListener >---
 
+    //-----------------------------------------< ItemStateLifeCycleListener >---
+
+    /**
+     * Updates the internal cache
+     *
+     * @param state
+     * @param previousStatus
+     * @see ItemStateLifeCycleListener#statusChanged(ItemState, int)
+     */
     public void statusChanged(ItemState state, int previousStatus) {
         if (Status.isTerminal(state.getStatus())) {
             if (state.isNode()) {
@@ -80,10 +88,22 @@
         }
     }
 
+    //------------------------------------------< ItemStateCreationListener >---
+    /**
+     * Updates the internal cache
+     *
+     * @param state
+     * @see ItemStateCreationListener#created(ItemState)
+     */
     public void created(ItemState state) {
         putToCache(state);
     }
 
+    /**
+     * Put the given <code>ItemState</code> in the internal cache.
+     *
+     * @param state
+     */
     private void putToCache(ItemState state) {
         if (state.isNode() && (state.getStatus() == Status.EXISTING || state.getStatus()
== Status.MODIFIED)) {
             NodeState nodeState = (NodeState) state;



Mime
View raw message